# Train

Grammar — Train count|Number units of type unitType|Units in player player’s town town with priority priority
FlagsNative | Action

Instructs the AI to train some units of the specified type.

# Arguments

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

Returns — void

native void AITrain(
	int player,
	int priority,
	int town,
	string aliasUnitType,
	int count,
);

Category: AI Advanced / Construction / Actions

# Examples

— None found —