ACE3/addons/captives/functions/fnc_canFriskPerson.sqf

24 lines
447 B
Plaintext
Raw Normal View History

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:
* -
*
* Public: No
*/
#include "script_component.hpp"
PARAMS_2(_unit,_target);
2015-02-04 19:16:19 +00:00
_target getVariable [QGVAR(isCaptive), false]
2015-02-03 02:04:50 +00:00
|| {_target getVariable ["ACE_isSearchable", false]}
|| {_target getVariable ["ACE_isUnconscious", false]}