# Wave Target Gather Defense

Grammar — Create a new wave target set to gather at the defensive gather point of town town for player player
FlagsNative | Function

Creates a new wave target set to gather at the defensive gather point of the specified town. Returns the wave target.

# Arguments

  • int — Player
  • int — Town

Returns — wavetarget

native wavetarget AIWaveTargetGatherD(
	int player,
	int town,
);

Category: AI Advanced / Waves / Functions

# Examples

# mods/core.sc2mod

BaseAI.galaxy

// L168
AIWaveTargetGatherD(player, c_townMain)

# mods/core.sc2mod

MeleeWaveAI.galaxy

// L85
AIWaveTargetGatherD(player, c_townMain)
// L108
AIWaveTargetGatherD(player, c_townMain)
// L221
AIWaveTargetGatherD(player, c_townMain)
// L272
AIWaveTargetGatherD(player, c_townMain)

# mods/starcoop/starcoop.sc2mod

BaseAI.galaxy

// L203
AIWaveTargetGatherD(player, c_townMain)

# mods/warcoop/warmeleeai.sc2mod

MeleeWaveAI.galaxy

// L215
AIWaveTargetGatherD(player, c_townMain)
// L242
AIWaveTargetGatherD(player, c_townMain)
// L310
AIWaveTargetGatherD(player, c_townMain)
// L361
AIWaveTargetGatherD(player, c_townMain)