2016-04-15 10:47:11 +00:00
|
|
|
// 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";
|
2016-04-26 09:29:50 +00:00
|
|
|
[_unit] join grpNull;
|
2016-04-15 10:47:11 +00:00
|
|
|
|
|
|
|
if(SC_debug) then
|
|
|
|
{
|
2016-04-20 14:25:17 +00:00
|
|
|
{ deleteVehicle _x; } forEach attachedObjects _unit;
|
2016-04-15 10:47:11 +00:00
|
|
|
};
|