mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
16 lines
408 B
Plaintext
16 lines
408 B
Plaintext
/**
|
|
* fn_hasOpenWounds.sqf
|
|
* @Descr: Check if unit has open wounds
|
|
* @Author: Glowbal
|
|
*
|
|
* @Arguments: [unit OBJECT (The unit to check)]
|
|
* @Return: BOOL
|
|
* @PublicAPI: true
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private "_openWounds";
|
|
_openWounds = [_this select 0,QGVAR(openWounds)] call EFUNC(common,getDefinedVariable);
|
|
|
|
({(((_x select 0) + (_x select 1) + (_x select 2)) > 0)}count _openWounds > 0); |