# Limit Bully Wave Gather To Nearest Town
Grammar — Sets limits when gathering bullies & other units for attack waves to only use ones at the nearest town for player player to be enable|Enabled\Disabled.
Flags —Native
|Action
When enabled for a player, this makes it so that bullies for that player can only be used in attack waves that are gathering near the town those bullies are closest to.
# Arguments
int
— Playerbool
[ preset::Enable_Disable_Option ] — Enable
Returns — void
native void AINearestTownLimitWaveGather(
int player,
bool enable,
);
# Related
Category: AI / Bullies / Actions
- [F] —
void
— Remove All Bullies — ( AIClearAllBullies ) - [F] —
void
— Add New Bully — ( AIAddBully ) - [F] —
void
— Set Minimum Bully Count — ( AISetMinimumBullyCount ) - [F] —
void
— Set Rebuild Count (Default) — ( AISetGeneralRebuildCount ) - [F] —
void
— Set Rebuild Count (Specific) — ( AISetSpecificRebuildCount ) - [F] —
void
— Set Attack Wave Bully Percent — ( AISetBullyAttackWavePercent ) - [F] —
void
— Set Bully Rebuild Delay — ( AISetBullyRebuildDelay ) - [F] —
void
— Limit Bully Rebuild To Nearest Town — ( AINearestTownBullyRebuild ) - [F] —
void
— Limit Bully Wave Gather To Nearest Town — ( AINearestTownLimitWaveGather ) - [F] —
void
— Activate/Deactivate Bullies In Region — ( AIToggleBulliesInRegion ) - [F] —
void
— Reset Bully Rebuild Counts In Region — ( AIResetBullyRebuildCountsInRegion )
# Examples
# campaigns/liberty.sc2campaign
// L4084
AINearestTownLimitWaveGather(gv_p02_DOMINION_INFANTRY, true)
// L1658
AINearestTownLimitWaveGather(gv_pLAYER02_PROTOSS, true)
// L4084
AINearestTownLimitWaveGather(gv_p02_DOMINION_INFANTRY, true)
// L1658
AINearestTownLimitWaveGather(gv_pLAYER02_PROTOSS, true)
// L6725
AINearestTownLimitWaveGather(gv_pLAYER_03_DOMINION_MAIN, true)
// L6726
AINearestTownLimitWaveGather(gv_pLAYER_04_DOMINION_RIGHT, true)
// L6727
AINearestTownLimitWaveGather(gv_pLAYER_07_DOMINION_LEFT, true)
// L6725
AINearestTownLimitWaveGather(gv_pLAYER_03_DOMINION_MAIN, true)
// L6726
AINearestTownLimitWaveGather(gv_pLAYER_04_DOMINION_RIGHT, true)
// L6727
AINearestTownLimitWaveGather(gv_pLAYER_07_DOMINION_LEFT, true)
// L3976
AINearestTownLimitWaveGather(gv_pLAYER_02_TALDARIM, true)
// L4539
AINearestTownLimitWaveGather(gv_pLAYER_08_RAYNOREXPANSIONS, true)
// L4541
AINearestTownLimitWaveGather(gv_pLAYER_09_KERRIGANEXPANSIONS, true)
// L3976
AINearestTownLimitWaveGather(gv_pLAYER_02_TALDARIM, true)
// L4539
AINearestTownLimitWaveGather(gv_pLAYER_08_RAYNOREXPANSIONS, true)
// L4541
AINearestTownLimitWaveGather(gv_pLAYER_09_KERRIGANEXPANSIONS, true)