Jump to content
Sign in to follow this  
Snypr

Ied Simple script

Recommended Posts

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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×