# Set StockTown

Grammar — Town set stock for player player using town hall type townHall and refinery type refinery|Gas
FlagsNative | Action

Adds Town into the stock for an AI player. When the AI reaches this point in the stock list, it will ensure that every Town it owns has two refineries and a town hall of the specified types. This ensures that AI towns are never without these buildings.

# Arguments

  • int — Player
  • string<gamelink::Unit> — TownHall
  • string<gamelink::Unit> — Refinery

Returns — bool

native bool AISetStockTown(
	int player,
	string aliasUnitTypeTH,
	string aliasUnitTypeGas,
);

Category: AI Advanced / Construction / Actions

# Examples

— None found —