ACE3/addons/captives/functions/fnc_canEscortCaptive.sqf

25 lines
460 B
Plaintext
Raw Normal View History

2015-02-04 19:16:19 +00:00
/*
* Author: PabstMirror
* Tests if can escort target (attach)
*
* Arguments:
* 0: caller (player) <OBJECT>
* 1: target <OBJECT><OPTIONAL>
*
* Return Value:
* The return value <BOOL>
*
* Example:
* -
*
* Public: No
*/
#include "script_component.hpp"
PARAMS_2(_unit,_target);
2015-02-05 22:39:45 +00:00
(_target getVariable [QGVAR(isHandcuffed), false]) &&
2015-02-04 19:16:19 +00:00
{isNull (attachedTo _target)} &&
{alive _target} &&
{!(_target getVariable [QGVAR(ACE_isUnconscious), false])}