# 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.sc2modbase.sc2data/TriggerLibs/MeleeWaveAI.galaxy:138

	if(creep!=null){
		DebugAI("Attacking Creep");
		return AIWaveTargetRegion(RegionCircle(UnitGetPosition(creep),GAw3_CreepCampBoundary/4),1);
	}
	// camps=GAw3_AIGetCreepCampGroup(0,FloorI(CR*0.8),GAw3_PlayerAllowAirCreep(player));