#include "..\script_component.hpp" /* * Author: PabstMirror * Tests if can escort target (attach) * * Arguments: * 0: Caller (player) * 1: Target * * Return Value: * Can escort * * Example: * [player, bob] call ACE_captives_fnc_canEscortCaptive * * Public: No */ params ["_unit", "_target"]; // Alive, handcuffed, not being escorted, and not unconscious (_target getVariable [QGVAR(isHandcuffed), false]) && {isNull (attachedTo _target)} && {_target call EFUNC(common,isAwake)} && {(vehicle _unit) == _unit} && {(vehicle _target) == _target}