so here is a simple car bomb script that will randomly place an ied into a car and set it off based on distance to the vehicle.
place this into the init line of the vehicles you want to potentially have an ied planted.
place this script in your mission folder;Code:nul=[this] execVM "carbomb.sqf";
carbomb.sqf
to increase the chances of any vehicle to have an ied planted, simply increase the integer of _value in the script.Code:_object = _this select 0; _value = random 100; if (_value < 25) then { _trg=createTrigger["EmptyDetector", position _object]; _trg setTriggerArea[8,8,0,false]; _trg setTriggerActivation["WEST","PRESENT",false]; _trg setTriggerStatements["this", "_bomb = nearestObject [getPos (thislist select 0), 'Car']; boom = 'R_57mm_HE' createVehicle position _bomb", ""]; };
also props to ProfTournesol for his advice. here is the orig thread...
http://forums.bistudio.com/showthread.php?t=94670
cheers
HOME
Reply With Quote








