# Init Melee AI

Grammar — Initialize the AI for player player
FlagsNative | 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);

Category: AI Advanced / Utility / Actions

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:12443

    }
    if ((PlayerType(2) == c_playerTypeComputer)) {
        AIMeleeStart(2);
    }