ROTAHOE 3 Posted April 22, 2018 (edited) Just want to know how I can run a check to see if my createVeh _bomb has exploded? Edited April 22, 2018 by R0adki11 thread title was not informative Share this post Link to post Share on other sites
Grumpy Old Man 3512 Posted April 22, 2018 !alive _bomb Cheers Share this post Link to post Share on other sites
ROTAHOE 3 Posted April 22, 2018 @Grumpy Old Man having issues and need help adding this: null=["ChemZone",400,11,40,3,7,-0.3,0.1,0.5,0.85,0.85,0,13,12,15,true,2,2.1,0.1,4,6,0,0.0,23.9] execFSM "scripts\ChemStrike\Chem_Gas.fsm"; to this code: if (not isServer) exitWith {}; _plane = _this select 0; _ammo = "Bomb_03_F"; for "_i" from 1 to 1 do { sleep 0.6; _para = createVehicle ["B_Parachute_02_F", [0,0,100], [], 0, ""]; _para setPosATL (player modelToWorld[0,0,100]); _bomb = _ammo createvehicle ([getPos _plane select 0,getPos _plane select 1,(getPos _para select 2)- 2]); _smoke = createVehicle ["SmokeShell", [0,0,0], [], 0 , ""]; _smoke attachTo [_bomb, [0,0,0]]; _bomb attachTo [_para,[0,0,0]]; waituntil {!isnull _bomb}; _bomb setVectorDirAndUp [[0,0,-1],[0,0.8,0]]; }; Using the check: !alive _bomb Cheers Share this post Link to post Share on other sites
beno_83au 1358 Posted April 29, 2018 _bomb is local to that scope only. Try using publicVariable so that it can be referenced outside of the script, then checking if it's alive. Also, why are you running your for "_i" from 1 to 1 loop only once? Is it just a placeholder for now? Share this post Link to post Share on other sites
ROTAHOE 3 Posted May 2, 2018 Awesome mate thank you ! Yeah mate have plans for that later ;) Share this post Link to post Share on other sites