2015-02-03 02:04:50 +00:00
|
|
|
/*
|
|
|
|
* Author: bux578
|
|
|
|
* Checks the conditions for being able to frisk a unit
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: caller (player) <OBJECT>
|
|
|
|
* 1: target <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* The return value <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2015-02-06 23:03:56 +00:00
|
|
|
* [player, bob] call ACE_captives_fnc_canFriskPerson
|
2015-02-03 02:04:50 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-04 23:15:20 +00:00
|
|
|
params ["_unit", "_target"];
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-05 22:39:45 +00:00
|
|
|
_target getVariable [QGVAR(isHandcuffed), false]
|
2015-02-07 04:24:27 +00:00
|
|
|
|| {_target getVariable [QGVAR(isSurrendering), false]}
|
2015-02-03 02:04:50 +00:00
|
|
|
|| {_target getVariable ["ACE_isSearchable", false]}
|
|
|
|
|| {_target getVariable ["ACE_isUnconscious", false]}
|