Heya!
Braincrush, I rewrote the script a little bit, hope that's okey for you.
At least when using the ACE-Mod, you can attach tripwires to IED-objects by using the following command:
this setVariable ["direction", [b](Direction as a number, e.g. 180)[/b]]; this setVariable ["length", [b](Lenght of the tripwire as a number, e.g. 5)[/b]];
So it could look like this:
this setVariable ["direction", 180]; this setVariable ["length",7];
This would create a tripwire, facing at 180 degrees with a length of 7 meters.
Now, when using the original script you'd have to have specific names for every IED plus an extra disarm script, since the script includes
specific names.
Here is the new one:
class = typeOf player;
_EXPLO = _this select 0;
if(class == "US_Soldier_Engineer_EP1") then {player playmove "AinvPknlMstpSlayWrflDnon_medic";
sleep 9;
deletevehicle _EXPLO;
}else{player playmove "AinvPknlMstpSlayWrflDnon_medic"; sleep 8;
bomb="Bo_GBU12_LGB" createVehicle [(getPos _EXPLO select 0),(getPos _EXPLO select 1),0];
};
All you have to do is to put the following code, just as in the original script, in the init line of the IED:
dsrm = this addaction ["Try to disarm the IED","disarm.sqf"];
That's basically it, here is a small demo-mission.
If you want the IED to be activated via a trigger, just do it as in the original.
Hope that was helpful,
Leo