mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
25 lines
533 B
Plaintext
25 lines
533 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: PabstMirror
|
|
* Checks the conditions for being able to remove handcuffs
|
|
*
|
|
* Arguments:
|
|
* 0: caller (player) <OBJECT>
|
|
* 1: target <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* The return value <BOOL>
|
|
*
|
|
* Example:
|
|
* [player, bob] call ACE_captives_fnc_canRemoveHandcuffs
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_unit", "_target"];
|
|
|
|
//Unit is handcuffed and not currently being escorted
|
|
_target getVariable [QGVAR(isHandcuffed), false] &&
|
|
{isNull (attachedTo _target)} &&
|
|
{(vehicle _target) == _target}
|