ACE3/addons/medical/functions/fnc_hasOpenWounds.sqf
2015-01-18 22:16:35 +01:00

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);