Added setting for allowing movement of dead bodies

This commit is contained in:
Glowbal 2015-03-14 09:37:19 +01:00
parent 4ce524ed3c
commit 99b1986059
2 changed files with 5 additions and 1 deletions

View File

@ -68,4 +68,8 @@ class ACE_Settings {
typeName = "NUMBER";
value = 120;
};
class GVAR(allowDeadBodyMovement) {
typeName = "BOOL";
value = false;
};
};

View File

@ -26,7 +26,7 @@ if (!([_caller] call EFUNC(common,canInteract)) || {_caller == _target} || {(([_
_caller action ["WeaponOnBack", _caller];
if (!alive _target) exitwith {
if (missionNamespace getvariable [QGVAR(allowDeadbodyMovement), false]) then {
if (GVAR(allowDeadBodyMovement)) then {
[{
_this call FUNC(actionCarryUnit);
}, [_caller, ([_target,_caller] call FUNC(makeCopyOfBody)), _carry], 0.25, 0.25] call EFUNC(common,waitAndExecute);