mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
517 B
Plaintext
27 lines
517 B
Plaintext
/*
|
|
* 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);
|
|
|
|
//Alive, handcuffed, not being escored, and not unconsious
|
|
|
|
(_target getVariable [QGVAR(isHandcuffed), false]) &&
|
|
{isNull (attachedTo _target)} &&
|
|
{alive _target} &&
|
|
{!(_target getVariable [QGVAR(ACE_isUnconscious), false])}
|