# Commander Level Of Player

Grammar — Commander Level of player p
FlagsNative | Function

Returns the commander level of the player.

# Arguments

  • int — Player

Returns — int

native int PlayerCommanderLevel(int inPlayer);

Category: Player / Player Settings

# Examples

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


    // Implementation
    if (((libCOMI_gv_cM_Mengsk_CheckRoyalGuardSupply == false) || ((PlayerDifficulty(lv_mengskplayer) >= 3) == false) || (PlayerCommanderLevel(lv_mengskplayer) < 15))) {
        return ;
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:4531

    }
    else {
        lv_currentLevel = PlayerCommanderLevel(lp_player);
    }
    libCOOC_gf_CC_PlayerLevelSet(lp_player, lv_currentLevel, lv_chosenCommander);