a3_exile_occupation/scripts/reactions/unitMPKilled.sqf
second_coming 9c5a506bb8 v20 fixes & tweaks
added the option for no AI at loot crate, added mpkilled event handler
to remove debug markers on AI
2016-04-15 11:47:11 +01:00

13 lines
327 B
Plaintext

// Get the variables from the event handler
_unit = _this select 0;
_killer = _this select 1;
// remove all eventhandlers from the dead unit
_unit removeAllMPEventHandlers "mphit";
_unit removeAllMPEventHandlers "mpkilled";
if(SC_debug) then
{
{ detach _x; deleteVehicle _x; } forEach attachedObjects _unit;
};