a3_exile_occupation/scripts/reactions/unitMPKilled.sqf
second_coming 1c48de5f5e V31 Roll Back
Problems with versions after this which caused out of memory errors
2016-05-04 09:57:54 +01:00

13 lines
294 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] join grpNull;
if(SC_debug) then
{
{ deleteVehicle _x; } forEach attachedObjects _unit;
};