Simple IED ScriptbyBroBeans Description Spawns an IED on the object named when a unit passes through the area specified (see Parameters). Uses "R_80mm_HE" as explosion. If you want to change this edit LINE 25. class names can be found in config viewer / cfgAmmo, but many classes aren't available due to scripted behavior. For example IED.. ammo classes are not working! Most common workable explosions are: "M_Mo_120mm_AT" , "M_Mo_120mm_AT_LG" , "M_Mo_82mm_AT_LG" , "R_60mm_HE" , "R_80mm_HE", "helicopterExploBig" , "helicopterExploSmall". Code if (!isServer) exitWith {};
params ["_obj", "_radius"];
_trg = createTrigger ["EmptyDetector", getPos _obj];
_trg setTriggerArea [_radius, _radius, 0, false];
_trg setTriggerActivation ["ANY", "PRESENT", false];
_trg setTriggerStatements ["this", "'r_80mm_HE' createVehicle (getPos thisTrigger)", ""]; Syntax [OBJECT, RADIUS] execVM "ied.sqf"; Parameters 0 : OBJECT - Object - Object as reference for IED 1 : RADIUS - Number - Radius in meters Usage Object initialization bomb = [this,10] execVM "ied.sqf"; |