don't drag or carry dead objects

This commit is contained in:
commy2 2015-03-18 15:52:34 +01:00
parent 4ea6b91e47
commit 0bc7811912
2 changed files with 2 additions and 2 deletions

View File

@ -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]}

View File

@ -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]}