# Init Melee AI
Grammar — Initialize the AI for player player
Flags —Native
|Action
Initializes the melee AI for a specific player. Calling Start Melee AI For All Players will call this action for each computer player.
# Arguments
int
— Player
Returns — void
void AIMeleeStart(int player);
# Related
Category: AI Advanced / Utility / Actions
- [F] —
void
— Start AI — ( AIStart ) - [F] —
void
— Accept Surrender — ( AIGoodGame ) - [F] —
void
— Init Melee AI — ( AIMeleeStart ) - [F] —
void
— Set APM — ( AISetAPM ) - [F] —
void
— Release Unit — ( AIReleaseUnit ) - [F] —
void
— Set State — ( AISetSpecificState ) - [F] —
void
— Set All States — ( AISetAllStates ) - [F] —
void
— Set Flag — ( AISetFlag ) - [F] —
void
— Set Coop Flag — ( AISetCoopFlag ) - [F] —
void
— Set Tech Flag State — ( AITechFlag ) - [F] —
void
— Set Unit Evaluation Custom Index — ( AIEvalSetCustomIndex ) - [F] —
void
— Enable/Disable AI Option For Unit — ( UnitSetAIOption ) - [F] —
void
— Set Defense Radii — ( AISetDefenseRadii )
# Examples
# mods/starcoop/starcoop.sc2mod
// L12440
AIMeleeStart(2)