# Get Cloaked Attacker
Grammar — Position of the Nth player|# cloaked attacker
Flags —Native
|Function
Returns the position of the last attack from a cloaked unit against a player specified by the Player parameter.
# Arguments
int
— Player
Returns — point
native point AIGetCloakedAttacker(int p);
# Related
Category: AI Advanced / Tactical / Functions
- [F] —
bool
— Same Command — ( AISameCommand ) - [F] —
unit
— Last Attacker — ( AILastAttacker ) - [F] —
int
— Last Attack — ( AILastAttack ) - [F] —
bool
— Get Wants To Move Status — ( AIControlWantsToMove ) - [F] —
bool
— Is Ignored By Wave — ( AIIsIgnoredByWave ) - [F] —
bool
— Is In Combat — ( AIUnitIsInCombat ) - [F] —
point
— Get Cloaked Attacker — ( AIGetCloakedAttacker ) - [F] —
point
— Get Best Target Point On Group — ( AIBestTargetPoint ) - [F] —
unitgroup
— Find Units — ( AIFindUnits ) - [F] —
unit
— Get Default Combat Priority — ( AIDefaultCombatPriority ) - [F] —
bool
— Combat Diff Flag Special High Priority — ( AICombatDiffFlagCatSpecialHighPrio ) - [F] —
bool
— Combat Diff Flag Splash High Priority — ( AICombatDiffFlagCatSplashHighPrio ) - [F] —
bool
— Combat Diff Flag Timed Low Priority — ( AICombatDiffFlagCatTimedLowPrio ) - [F] —
bool
— Combat Diff Flag Workers Normal Priority — ( AICombatDiffFlagCatWorkersNormalPrio ) - [F] —
bool
— Combat Diff Flag Sort Buildings Priority — ( AICombatDiffFlagCatSortBuildingsPrio ) - [F] —
bool
— Combat Diff Flag Healers — ( AICombatDiffFlagTieBreakHealers ) - [F] —
bool
— Combat Diff Flag Low Health — ( AICombatDiffFlagTieBreakLowHP ) - [F] —
bool
— Combat Diff Flag Bonus Damage — ( AICombatDiffFlagTieBreakBonusDamage ) - [F] —
bool
— Combat Diff Flag Injured — ( AICombatDiffFlagTieBreakInjured ) - [F] —
bool
— Combat Diff Flag Detector — ( AICombatDiffFlagTieBreakDetector ) - [F] —
bool
— Combat Diff Flag Siege Range — ( AICombatDiffFlagTieBreakRange ) - [F] —
bool
— Does Unit Have Tactical Disabled — ( AIIsTacticalDisabled )
# Examples
# mods/core.sc2mod
// L9
AIGetCloakedAttacker(player)
# mods/core.sc2mod
// L1057
AIGetCloakedAttacker(player)
# mods/core.stormmod
// L9
AIGetCloakedAttacker(player)
# mods/starcoop/starcoop.sc2mod
// L13084
AIGetCloakedAttacker(auto3F461774_var)
# mods/starcoop/starcoop.sc2mod
// L1037
AIGetCloakedAttacker(player)
# mods/warcoop/warclassicsystem.sc2mod
// L313
AIGetCloakedAttacker(player)