# AIGetSelfRaceVal

FlagsNative

# Arguments

  • int — player

Returns — int

native int AIGetSelfRaceVal(int player);

Category: Unclassified

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeBuildAI.galaxy:321

int AIRandomlyChooseOpeningBuild (int player) {
    int enemyRace = AIGetEnemyRaceVal(player);
    int selfRace = AIGetSelfRaceVal(player);
    int randomRoll;
    int rushChance;

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeBuildAI.galaxy:448


int AIRandomlyChooseLateGameBuild (int player) {
    int selfRace = AIGetSelfRaceVal(player);
    int randomRoll;
    int airChance;