# Allied Commander Enemy Wave Type

Grammar — The retry enemy wave type for p
FlagsNative | Function | Restricted

Returns the Allied Commanders wave type for retrying a coop game for a player. Returns 0 for non-retry games.

# Arguments

  • int — Player

Returns — int

native int PlayerACEnemyWaveType(int p);

Category: Player / Player Settings

# Examples

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

    AIAddAirDangerCampaignUnits(lp_player);
    if ((libCOMI_gv_cM_CoopAIPlayer_CommanderShared == "None") && (PlayerRetryMutation(1, 0) > 0)) {
        libCOMI_gv_cM_CoopAIPlayer_Commander[lp_player] = libCOOC_gf_CC_AICommanderByUniqueIndex(PlayerACEnemyWaveType(1));
        libCOMI_gf_CM_CoopAIPersonalitySet(libCOMI_gv_cM_CoopAIPlayer_Commander[lp_player]);
    }