Would this work ?
Carbomb.sqf
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", ""];
};
Code:
nul=[this] execVM "carbomb.sqf";
How can I put that in each Init of the Vehicle module , and would it work if they are moving?