# 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
- [F] —
void
— Build — ( AIBuild ) - [F] —
void
— Train — ( AITrain ) - [F] —
void
— Research — ( AIResearch ) - [F] —
void
— Make Always — ( AIMakeAlways ) - [F] —
void
— Make Once — ( AIMakeOnce ) - [F] —
void
— Clear Build Queue — ( AIClearBuildQueue ) - [F] —
void
— Clear Train Queue — ( AIClearTrainQueue ) - [F] —
void
— Clear Research Queue — ( AIClearResearchQueue ) - [F] —
void
— Clear Stock — ( AIClearStock ) - [F] —
void
— Enable Stock — ( AIEnableStock ) - [F] —
void
— Set StockEx — ( AISetStockEx ) - [F] —
void
— Set Stock — ( AISetStock ) - [F] —
void
— Set StockOpt — ( AISetStockOpt ) - [F] —
void
— Set StockUnitNext — ( AISetStockUnitNext ) - [F] —
bool
— Set StockTown — ( AISetStockTown ) - [F] —
bool
— Set StockExpand — ( AISetStockExpand ) - [F] —
void
— Set StockAlias — ( AISetStockAlias ) - [F] —
void
— Set StockFree — ( AISetStockFree ) - [F] —
void
— Default Economy — ( AIDefaultEconomy ) - [F] —
void
— Default Expansion — ( AIDefaultExpansion )
# Examples
— None found —