# Set StockAlias
Grammar — Set StockAlias(player, count, unitType, aliasType)
Flags —Native
|Action
Adds a unit into the stock with consideration for the Alias Type parameter. This alias is used for some internal functions. Note: This is an advanced AI concept. In most cases Set Stock is a more efficient choice.
# Arguments
int
— Playerint
— Countstring
[ gamelink::Unit ] — Unit Typestring
— AliasType
Returns — void
void AISetStockAlias(
int player,
int count,
string makeType,
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 —