a3_exile_occupation/scripts/eventHandlers/unitMPKilled.sqf
second_coming 81b78aeae6 V43 Tweaks
2016-05-26 23:11:11 +01:00

14 lines
333 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 removeAllEventHandlers "fired";
[_unit] join grpNull;
if(SC_debug) then
{
{ deleteVehicle _x; } forEach attachedObjects _unit;
};