Files
Sarge-AI/Sarge AI Files/scripts/UPSMON/COMMON/Group/fnc/UPSMON_GothitParam.sqf
Teh Dango 1218f04f15 2.1.1
Pushing this due to the greatly improved HC logic compared to the
current logic. This minor update includes a new variable to control kill
messages and track AI kills.
2016-04-02 12:18:10 -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