# Set StockAlias

Grammar — Set StockAlias(player, count, unitType, aliasType)
FlagsNative | Action

Adds a unit into the stock with consideration for the Alias Type parameter. This alias is used for some internal functions. Note: This is an advanced AI concept. In most cases Set Stock is a more efficient choice.

# Arguments

  • int — Player
  • int — Count
  • string<gamelink::Unit> — Unit Type
  • string — AliasType

Returns — void

void AISetStockAlias(
	int player,
	int count,
	string makeType,
	string aliasType,
);

Category: AI Advanced / Construction / Actions

# Examples

— None found —