Sarge-AI/sarge/UPSMON/COMMON/Group/fnc/UPSMON_GothitParam.sqf
Teh Dango 7067ad9b0a 2.2.3
Check the change log for details
2016-08-18 22:58:49 -04:00

35 lines
693 B
Plaintext

/****************************************************************
File: UPSMON_GothitParam.sqf
Author: Azroul13
Description:
Is the unit hit ? Or Does it under fire ?
Parameter(s):
<--- unit
Returns:
Boolean
****************************************************************/
private ["_npc","_gothit"];
_npc = _this select 0;
_gothit = false;
If (isNil "tpwcas_running") then
{
if (group _npc in UPSMON_GOTHIT_ARRAY || group _npc in UPSMON_GOTKILL_ARRAY) then
{
_gothit = true;
};
}
else
{
_Supstate = [_npc] call UPSMON_supstatestatus;
if (group _npc in UPSMON_GOTHIT_ARRAY || group _npc in UPSMON_GOTKILL_ARRAY || _Supstate >= 2) then
{
_gothit = true;
};
};
_gothit