# Set StockFree
Grammar — Add count count unitType to player player’s stock if prerequisite prereq is met
Flags —Native
|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
— Playerint
— Countstring
<gamelink::Unit> — Unit Typestring
— Prereq
Returns — void
void AISetStockFree(
int player,
int count,
string makeType,
string prereq,
);
# Related
Category: AI Advanced / Construction / Actions
- Build —
void
— AIBuild - Train —
void
— AITrain - Research —
void
— AIResearch - Make Always —
void
— AIMakeAlways - Make Once —
void
— AIMakeOnce - Clear Build Queue —
void
— AIClearBuildQueue - Clear Train Queue —
void
— AIClearTrainQueue - Clear Research Queue —
void
— AIClearResearchQueue - Clear Stock —
void
— AIClearStock - Enable Stock —
void
— AIEnableStock - Set StockEx —
void
— AISetStockEx - Set Stock —
void
— AISetStock - Set StockOpt —
void
— AISetStockOpt - Set StockUnitNext —
void
— AISetStockUnitNext - Set StockTown —
bool
— AISetStockTown - Set StockExpand —
bool
— AISetStockExpand - Set StockAlias —
void
— AISetStockAlias - Set StockFree —
void
— AISetStockFree - Default Economy —
void
— AIDefaultEconomy - Default Expansion —
void
— AIDefaultExpansion
# Examples
— None found —