Jump to content

Touhou

Member
  • Content Count

    29
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About Touhou

  • Rank
    Private First Class

Profile Information

  • Gender
    Male
  • Location
    France

Contact Methods

  • Youtube
    https://www.youtube.com/channel/UC1t_Pv6SWj71Mos/
  • Steam url id
    http://steamcommunity.com/profiles/76561198051179472/
  • Twitch.Tv
    https://www.twitch.tv/touhouplay/
  • Instagram

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi everyone ! I'm stuck on something, i'd like to count items on a container. but I'd like to count _x for a group of item. I explaine myself : Every day (ingame) I check with a script if the box "Box" contain a certain amount of items, let's say that I check if there is some food in it. So I'd like to count if there is enough food (like 10 food item) in the box container, but it can be 2 carrots / 1 fish / 4 chickens etc... and I don't want to count like : _nbChicken = {"chicken" == _x} count (itemCargo MyBox); _nbFish = {"Fish" == _x} count (itemCargo MyBox); _nbFood = _nbChicken + _nbFish...... I'd like to make it this way : _table = ["Fish","chicken",etc....]; _nbFood = {_table == _x} count (itemCargo MyBox); is this possible ?
  2. Yeah I just find it 1 minute ago and it works haha, thanks by the way ;) Next time I'll search more longer before posting something x)
  3. Hi guys ! I'm currently searching for a solution, I'd like to check if there is a specific item in the vehicle inventory... I use the addon "Hero survive" and I'm currently creating a script that allow to repair brokens car if you have the specifics items. But some of them like wheels and battery are to heavy for backpacks so... I'd like to check if the tyres etc are in the car inventory. something like : _vehicle = _this select 0; _Wheels = {"herl_o_tyer" == _x} count ("InventoryOfCar" _vehicle); // Like (BackpackItems _player) if (_wheels == 4) then { blablabla car is repaired...} else { blablabla wheels missing.... }; I have all the "blablabla" thing, I just need to know how to check the car inventory, I already know how to check if player has specific item in his vest/backpack/uniform... but for vehicle.... :/ Thanks.
  4. It's ok, I found myself how to make my script working properly. I spowned 3000 Zombies on Malden (but some of them are in water so they are instantly deleted) and there is no FPS cost.
  5. There is the code I'm using : Trigger : [200,"mkr_z"] execVM "Init_Z.sqf"; Init_Z : if (isServer) then { // Set probability of Zombies spawning 1-100% _probability = 80; // Show Zombies position on map (Debugging) _showZ = true; // Set Zombies classes Zombies_Slow = ["RyanZombieC_man_1slowOpfor","RyanZombieC_man_polo_1_FslowOpfor","RyanZombieC_man_polo_2_FslowOpfor","RyanZombieC_man_polo_4_FslowOpfor","RyanZombieC_man_polo_5_FslowOpfor","RyanZombieC_man_polo_6_FslowOpfor","RyanZombieC_man_p_fugitive_FslowOpfor","RyanZombieC_man_w_worker_FslowOpfor","RyanZombieC_scientist_FslowOpfor","RyanZombieC_man_hunter_1_FslowOpfor"]; Zombies_Medium = ["RyanZombieC_man_1mediumOpfor","RyanZombieC_man_polo_1_FmediumOpfor","RyanZombieC_man_polo_2_FmediumOpfor","RyanZombieC_man_polo_4_FmediumOpfor","RyanZombieC_man_polo_5_FmediumOpfor","RyanZombieC_man_polo_6_FmediumOpfor","RyanZombieC_man_p_fugitive_FmediumOpfor","RyanZombieC_man_w_worker_FmediumOpfor","RyanZombieC_scientist_FmediumOpfor","RyanZombieC_man_hunter_1_FmediumOpfor"]; Zombies_Fast = ["RyanZombieC_man_1Opfor","RyanZombieC_man_polo_1_FOpfor","RyanZombieC_man_polo_2_FOpfor","RyanZombieC_man_polo_4_FOpfor","RyanZombieC_man_polo_5_FOpfor","RyanZombieC_man_polo_6_FOpfor","RyanZombieC_man_p_fugitive_FOpfor","RyanZombieC_man_w_worker_FOpfor","RyanZombieC_scientist_FOpfor"]; private ["_distance"]; _rad1 = _this select 0; _mkr=(_this select 1); _mkr setmarkerAlpha 0; _pos=markerpos _mkr; _mkrY= getmarkerSize _mkr select 0; _mkrX= getmarkerSize _mkr select 1; _distance=_mkrX; if (_mkrY > _mkrX) then { _distance=_mkrY; }; for "_n" from 0 to 40 do { _Zpos=[(getMarkerPos _mkr select 0)-_rad1*sin(random 199),(getMarkerPos _mkr select 1)-_rad1*cos(random 199)]; if (_probability > random 100) then { null=[_Zpos,_showZ] execVM "Spawn_Z.sqf"; }; }; }; Spawn_Z.sqf : if (isServer) then { _Zpos= (_this select 0); _pos0= (_Zpos select 0); _pos1= (_Zpos select 1); _showZ= (_this select 1); _BARREL = createVehicle ["Land_BarrelEmpty_F",[_pos0,_pos1,0], [], 0, "can_Collide"]; sleep 0.5; _holder = createVehicle ["groundweaponholder",[_pos0,_pos1,0], [], 0, "can_Collide"]; deletevehicle _BARREL; _type = random 2; if (_showZ) then { _id=format ["%1",_Zpos]; _debug=createMarker [_id,GETPOS _holder]; _debug setMarkerShape "ICON"; _debug setMarkerType "hd_dot"; _debug setMarkerColor "ColorBlack"; _debug setMarkerText "Z"; }; hint "marker on"; //debug // Spawn Slow Zombie if (_type == 0) then { _eGrp = createGroup EAST; _Zunit = _eGrp createUnit [(Zombies_Slow call bis_fnc_selectRandom),position _holder, [], 0, "NONE"]; hint "zombie spawned"; //debug }; // Spawn Medium Zombie if (_type == 1) then { _eGrp = createGroup EAST; _Zunit = _eGrp createUnit [(Zombies_Medium call bis_fnc_selectRandom),position _holder, [], 0, "NONE"]; hint "zombie spawned"; //debug }; }; // Spawn Medium Zombie if (_type == 2) then { _eGrp = createGroup EAST; _Zunit = _eGrp createUnit [(Zombies_Fast call bis_fnc_selectRandom),position _holder, [], 0, "NONE"]; hint "zombie spawned"; //debug }; }; };
  6. Hi, I searching for a way to spawn units randomly in a marker. I've tried something with radius etc but it seems that units spawn even out of the marker and even on water... I'd like to spawn those units only on ground and in the definided marker. And I have another problem, The units I try to spawn are zombies... And when I choose to spawn 2000 of them with a debug marker to know where each zombies are, I don't find any zombies at the markers positions... is there any units limit on Arma 3 ?
  7. Touhou

    AI groups to cargo

    Yeah, I wrote "Vehicle" for an exemple, I called my vehicle "C130J_tsp". Thanks for your reply and your help, I try this later !
  8. Hi ! I'd like to move all my team mates to a cargo, but when I use this command, I also move in cargo, but I don't want my player in cargo, only team mates. {_x moveincargo Vehicle;} forEach units group player; Someone have the answer ? Thanks
  9. Touhou

    AI RPG SHOT

    Thanks ! I take a look ;)
  10. Hi everyone, I try to make an AI shoot me with a RPG (vanilla one), but I search about 1h to make this happens and found this : 1 : rpg_1 forceWeaponFire ["launch_RPG7_F", "RPG7_F"]; rpg_1 doFire player; 2 : rpg_1 selectWeapon "launch_RPG7_F"; rpg_1 dowatch player; rpg_1 dotarget player; rpg_1 dofire player; But when I launch the mission, the STUPID AI take the RPG and holsters it immediately, and repeat it never ending .... Did someone know how to make this stupid AI shot me ? Thanks
  11. Hi ! I have a problem, When I put your VQI LEAP module on the map, there is no plane but only 3 guys, so I can't HALO or PARAJUMP... :/
  12. Hi everyone ! I'm here to ask you if I'm the only one or this is the same for all of us. Since the Arma 3 update, all my CAMERA script are broken and the Live Feed module doesn't work anymore. Is this the same for you ? And if you have any solution or alternatives to attach a camera to something and stream it on a screen it may hel me a lot. Thanks
  13. Touhou

    ACE3 EventHandler

    Thanks to you guys It works ! :D
  14. Touhou

    ACE3 EventHandler

    Okay I understand now, but there is a subtlety, In the inventory of the player, the body bag are called "ACE_bodyBagItem" and when he bagged someone, this "ACE_bodyBagItem" turn into "ACE_bodyBagObject" that is a different object so the variable of "ACE_bodyBagItem" are not the variable of "ACE_bodyBagObject. So, I try fnc_BenInCargo = { ["_item","_vehicle"]; if (_item isEqualTo BenInABag) then { hint "hurray, you loaded him!"; }; }; But doesn't work :/
  15. Hi ! I'm trying to add a variable to an item that are generated ingame but I don't know how to do it and I'ved searched for such two hours and nothing... So, I need to add a variable to a body bag that are generated when I bagged someone, I know only the classname of the bag that is "ACE_bodyBagObject"... so if you know something that work, thanks guys !
×