a3_exile_occupation/scripts/reactions/unitMPKilled.sqf

12 lines
283 B
Plaintext
Raw Normal View History

// 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";
if(SC_debug) then
{
{ detach _x; deleteVehicle _x; } forEach attachedObjects _unit;
};