mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
#2524 - Take Unconscious captive
This commit is contained in:
@ -23,4 +23,9 @@ params ["_unit", "_target"];
|
|||||||
("ACE_CableTie" in (items _unit)) &&
|
("ACE_CableTie" in (items _unit)) &&
|
||||||
{alive _target} &&
|
{alive _target} &&
|
||||||
{!(_target getVariable [QGVAR(isHandcuffed), false])} &&
|
{!(_target getVariable [QGVAR(isHandcuffed), false])} &&
|
||||||
(GVAR(requireSurrender) == 0 || ((_target getVariable [QGVAR(isSurrendering), false]) || (currentWeapon _target == "" && GVAR(requireSurrender) == 2)))
|
{
|
||||||
|
(_target getVariable ["ACE_isUnconscious", false]) || //isUnconscious
|
||||||
|
{GVAR(requireSurrender) == 0} || //or don't require surrendering
|
||||||
|
{_target getVariable [QGVAR(isSurrendering), false]} || //or is surrendering
|
||||||
|
{(GVAR(requireSurrender) == 2) && {(currentWeapon _target) == ""}} //or "SurrenderOrNoWeapon" and no weapon
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user