Snypr 10 Posted March 26, 2011 Hi guys have created a simple Ied Init this addaction ["Defuse","Defuse.sqf"] Then created a Defuse.sqf with //////////// _object = _this select 0; _type = typeof _object; if (_object isKindOf "ied") exitWith {}; _object removeAction 0; hint "Attempting To Defuse"; sleep 2; Hint "Defusing."; sleep 2; Hint "Defusing.."; sleep 2; Hint "Defusing..."; sleep 2; bomb="Bo_GBU12_LGB" createVehicle [(getPos _object select 0),(getPos _object select 1),0]; ////////// My question is i want the Ied to have a 50/50 chance of blowing up can this be done from here without naming all the Ied Separatly Thanks SnYpR Share this post Link to post Share on other sites
twirly 11 Posted March 26, 2011 Change your bomb line to this mate.... should work. if ((random 10) <=5) then {bomb="Bo_GBU12_LGB" createVehicle [(getPos _object select 0),(getPos _object select 1),0]} else {Hint "Defused!!!"}; Share this post Link to post Share on other sites
Snypr 10 Posted March 26, 2011 Change your bomb line to this mate.... should work. if ((random 10) <=5) then {bomb="Bo_GBU12_LGB" createVehicle [(getPos _object select 0),(getPos _object select 1),0]} else {Hint "Defused!!!"}; Thanks Will try this now Share this post Link to post Share on other sites