ACE3/addons/respawn/XEH_serverPostInit.sqf
Cuel 66c2bf0506 Fix dead bodies removal, when forced = 1
- Removed unused(?) GVAR(Module)
- Removed "white space alignment" in module.sqf
2016-05-03 20:10:28 +02:00

18 lines
463 B
Plaintext

#include "script_component.hpp"
["SettingsInitialized", {
if (GVAR(RemoveDeadBodiesDisconnected)) then {
addMissionEventHandler ["HandleDisconnect", {
[{
params ["_unit"];
if (!alive _unit) then {
deleteVehicle _unit;
};
},
_this, 4] call EFUNC(common,waitAndExecute);
false
}];
};
}] call EFUNC(common,addEventHandler);