mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
998f86f034
* first pass * second pass * third pass * final pass * missing commas * newlines * switch to cba eventhandler * newlines, formatting * laser - movedToSQF * add logging to ace_common_fnc_cbaSettings_loadFromConfig * Update initSettings.sqf Co-authored-by: PabstMirror <pabstmirror@gmail.com>
18 lines
455 B
Plaintext
18 lines
455 B
Plaintext
#include "script_component.hpp"
|
|
|
|
["CBA_settingsInitialized", {
|
|
if (GVAR(RemoveDeadBodiesDisconnected)) then {
|
|
addMissionEventHandler ["HandleDisconnect", {
|
|
[{
|
|
params ["_unit"];
|
|
|
|
if (!alive _unit) then {
|
|
deleteVehicle _unit;
|
|
};
|
|
},
|
|
_this, 4] call CBA_fnc_waitAndExecute;
|
|
false
|
|
}];
|
|
};
|
|
}] call CBA_fnc_addEventHandler;
|