# AIGetSelfRaceVal
Flags —
Native
# Arguments
int
— player
Returns — int
native int AIGetSelfRaceVal(int player);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeBuildAI.galaxy:321
int AIRandomlyChooseOpeningBuild (int player) {
int enemyRace = AIGetEnemyRaceVal(player);
int selfRace = AIGetSelfRaceVal(player);
int randomRoll;
int rushChance;
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeBuildAI.galaxy:448
int AIRandomlyChooseLateGameBuild (int player) {
int selfRace = AIGetSelfRaceVal(player);
int randomRoll;
int airChance;