9c5a506bb8
added the option for no AI at loot crate, added mpkilled event handler to remove debug markers on AI
13 lines
327 B
Plaintext
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;
|
|
};
|