# Set StockOpt
Grammar — Set stock for player player to make count units of type unitType
Flags —Native|Action
Set stock for a player to make units of the specified unit type using the “optional” Stock Flag.
# Arguments
int— Playerint— Countstring<gamelink::Unit> — Unit Type
Returns — void
native void AISetStockOpt(
int player,
int count,
string aliasType,
);
# 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 —