# Set StockFree

Grammar — Add count count unitType to player player’s stock if prerequisite prereq is met
FlagsNative | Action

Adds a unit to the AI player’s stock if the Prereq parameter is met. An example of this would be telling the AI player to add Stalkers to their stock, but only if they have Blink researched.

# Arguments

  • int — Player
  • int — Count
  • string [ gamelink::Unit ] — Unit Type
  • string — Prereq

Returns — void

void AISetStockFree(
	int player,
	int count,
	string makeType,
	string prereq,
);

Category: AI Advanced / Construction / Actions

# Examples

— None found —