mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
don't drag or carry dead objects
This commit is contained in:
parent
4ea6b91e47
commit
0bc7811912
@ -22,4 +22,4 @@ if !([_unit, _target, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
// a static weapon has to be empty for dragging
|
||||
if ((typeOf _target) isKindOf "StaticWeapon" && {count crew _target > 0}) exitWith {false};
|
||||
|
||||
_target getVariable [QGVAR(canCarry), false]
|
||||
alive _target && {_target getVariable [QGVAR(canCarry), false]}
|
||||
|
@ -22,4 +22,4 @@ if !([_unit, _target, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
// a static weapon has to be empty for dragging
|
||||
if ((typeOf _target) isKindOf "StaticWeapon" && {count crew _target > 0}) exitWith {false};
|
||||
|
||||
_target getVariable [QGVAR(canDrag), false]
|
||||
alive _target && {_target getVariable [QGVAR(canDrag), false]}
|
||||
|
Loading…
Reference in New Issue
Block a user