mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added setting for allowing movement of dead bodies
This commit is contained in:
parent
4ce524ed3c
commit
99b1986059
@ -68,4 +68,8 @@ class ACE_Settings {
|
||||
typeName = "NUMBER";
|
||||
value = 120;
|
||||
};
|
||||
class GVAR(allowDeadBodyMovement) {
|
||||
typeName = "BOOL";
|
||||
value = false;
|
||||
};
|
||||
};
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user