# AISawCloakedUnit
Flags —
Native
# Arguments
int
— p
Returns — bool
native bool AISawCloakedUnit(int p);
# Related
Category: Unclassified
# Examples
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:13086
auto3F461774_var = PlayerGroupNextPlayer(auto3F461774_g, auto3F461774_var);
if (auto3F461774_var < 0) { break; }
lv_aIHasSeenCloakedUnit = AISawCloakedUnit(auto3F461774_var);
lv_cloakedAttacker_Current = AIGetCloakedAttacker(auto3F461774_var);
if (((lv_aIHasSeenCloakedUnit == true) || (lv_cloakedAttacker_Current != null) || (libCOMI_gf_AISuspectDetectionDanger(auto3F461774_var) == true))) {