mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
22 lines
421 B
Plaintext
22 lines
421 B
Plaintext
/*
|
|
* By: bux578
|
|
*
|
|
* Checks the conditions for being able to frisk a unit
|
|
*
|
|
* Arguments:
|
|
* 0: caller (player) (Object)
|
|
* 1: target (Object)
|
|
*
|
|
* Return Value:
|
|
* Boolean
|
|
*/
|
|
|
|
private ["_unit", "_target"];
|
|
|
|
_unit = _this select 0;
|
|
_target = _this select 1;
|
|
|
|
_target getVariable ["AGM_isCaptive", false]
|
|
|| {_target getVariable ["AGM_isSearchable", false]}
|
|
|| {_target getVariable ["AGM_isUnconscious", false]}
|