# Enable Stock
Grammar — Enable restocking which has the AI try to make the objects specified by AISetStock for player player
Flags —Native
|Action
Instructs the AI to make all the units and buildings specified by previously executed Set Stock commands for a player.
# Arguments
int
— Player
Returns — void
native void AIEnableStock(int player);
# 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
# mods/core.sc2mod
// L340
AIEnableStock(player)
// L350
AIEnableStock(player)
// L377
AIEnableStock(player)
// L387
AIEnableStock(player)
// L414
AIEnableStock(player)
// L424
AIEnableStock(player)
# mods/core.sc2mod
// L446
AIEnableStock(player)
// L456
AIEnableStock(player)
// L588
AIEnableStock(player)
// L598
AIEnableStock(player)
// L730
AIEnableStock(player)
// L740
AIEnableStock(player)
# mods/liberty.sc2mod
// L159
AIEnableStock(player)
// L218
AIEnableStock(player)
// L266
AIEnableStock(player)
// L331
AIEnableStock(player)
// L398
AIEnableStock(player)
// L469
AIEnableStock(player)
// L529
AIEnableStock(player)
// L578
AIEnableStock(player)
// L639
AIEnableStock(player)
// L707
AIEnableStock(player)
# mods/liberty.sc2mod
// L252
AIEnableStock(player)
// L413
AIEnableStock(player)
// L756
AIEnableStock(player)
# mods/liberty.sc2mod
// L394
AIEnableStock(player)
// L624
AIEnableStock(player)
// L1052
AIEnableStock(player)
# mods/liberty.sc2mod
// L159
AIEnableStock(player)
// L218
AIEnableStock(player)
// L266
AIEnableStock(player)
// L331
AIEnableStock(player)
// L398
AIEnableStock(player)
// L469
AIEnableStock(player)
// L529
AIEnableStock(player)
// L578
AIEnableStock(player)
// L639
AIEnableStock(player)
// L707
AIEnableStock(player)
# mods/liberty.sc2mod
// L359
AIEnableStock(player)
// L586
AIEnableStock(player)
// L978
AIEnableStock(player)
# mods/liberty.sc2mod
// L319
AIEnableStock(player)
// L498
AIEnableStock(player)
// L869
AIEnableStock(player)
# mods/liberty.sc2mod
// L230
AIEnableStock(player)
// L380
AIEnableStock(player)
// L704
AIEnableStock(player)
# mods/liberty.sc2mod
// L192
AIEnableStock(player)
// L251
AIEnableStock(player)
// L299
AIEnableStock(player)
// L364
AIEnableStock(player)
// L431
AIEnableStock(player)
// L502
AIEnableStock(player)
// L562
AIEnableStock(player)
// L611
AIEnableStock(player)
// L672
AIEnableStock(player)
// L740
AIEnableStock(player)
# mods/liberty.sc2mod
// L144
AIEnableStock(player)
// L214
AIEnableStock(player)
// L259
AIEnableStock(player)
// L330
AIEnableStock(player)
// L406
AIEnableStock(player)
// L484
AIEnableStock(player)
// L545
AIEnableStock(player)
// L598
AIEnableStock(player)
// L650
AIEnableStock(player)
// L717
AIEnableStock(player)
# mods/liberty.sc2mod
// L253
AIEnableStock(player)
// L399
AIEnableStock(player)
// L743
AIEnableStock(player)
# mods/liberty.sc2mod
// L436
AIEnableStock(player)
// L702
AIEnableStock(player)
// L1209
AIEnableStock(player)
# mods/liberty.sc2mod
// L144
AIEnableStock(player)
// L214
AIEnableStock(player)
// L259
AIEnableStock(player)
// L330
AIEnableStock(player)
// L406
AIEnableStock(player)
// L484
AIEnableStock(player)
// L545
AIEnableStock(player)
// L598
AIEnableStock(player)
// L650
AIEnableStock(player)
// L717
AIEnableStock(player)
# mods/liberty.sc2mod
// L420
AIEnableStock(player)
// L682
AIEnableStock(player)
// L1151
AIEnableStock(player)
# mods/liberty.sc2mod
// L354
AIEnableStock(player)
// L562
AIEnableStock(player)
// L966
AIEnableStock(player)
# mods/liberty.sc2mod
// L224
AIEnableStock(player)
// L363
AIEnableStock(player)
// L686
AIEnableStock(player)
# mods/liberty.sc2mod
// L179
AIEnableStock(player)
// L249
AIEnableStock(player)
// L294
AIEnableStock(player)
// L365
AIEnableStock(player)
// L441
AIEnableStock(player)
// L519
AIEnableStock(player)
// L580
AIEnableStock(player)
// L633
AIEnableStock(player)