# Wave Target Region

Grammar — Create a new wave target set to defend the region region with replace behavior replaceType
FlagsNative | Function

Creates a new wave target set to defend the specified region. Returns the wave target.

# Arguments

  • region — Region
  • int [ preset::ReplaceType ] — ReplaceType

Returns — wavetarget

native wavetarget AIWaveTargetRegion(
	region r,
	int replaceType,
);

Category: AI Advanced / Waves / Functions

# Examples

# mods/warcoop/warmeleeai.sc2mod

MeleeWaveAI.galaxy

// L138
AIWaveTargetRegion(RegionCircle(UnitGetPosition(creep),GAw3_CreepCampBoundary/4),1)