# Get Mineral Amount Left

Grammar — Get the total minerals left to be harvested in town town for player player
FlagsNative | Function

Returns the total minerals left to be harvested in a town for a player.

# Arguments

  • int — Player
  • int — Town

Returns — int

native int AIGetMineralAmountLeft(int player, int town);

Category: AI Advanced / Towns / Functions

# Examples

# mods/core.sc2mod

SharedAI.galaxy

// L89
AIGetMineralAmountLeft(player, c_townMax)
// L89
AIGetMineralAmountLeft(player, c_townMax)

# mods/liberty.sc2mod

TerranHigh.galaxy

// L1150
AIGetMineralAmountLeft(player, town)

# mods/liberty.sc2mod

ZergHigh.galaxy

// L1088
AIGetMineralAmountLeft(player, town)

# mods/swarm.sc2mod

TerranHigh.galaxy

// L1141
AIGetMineralAmountLeft(player, town)

# mods/swarm.sc2mod

ZergHigh.galaxy

// L1106
AIGetMineralAmountLeft(player, town)

# mods/void.sc2mod

TerranHigh.galaxy

// L1155
AIGetMineralAmountLeft(player, town)

# mods/void.sc2mod

ZergHigh.galaxy

// L1116
AIGetMineralAmountLeft(player, town)