# Wave Target Unit

Grammar — Create a new wave target set to attack the folllowing unit unit
FlagsNative | Function

Creates a new wave target set to attack a unit. Returns the wave target.

# Arguments

  • unit — Unit

Returns — wavetarget

native wavetarget AIWaveTargetUnit(unit u);

Category: AI Advanced / Waves / Functions

# Examples

# mods/core.sc2mod

MeleeWaveAI.galaxy

// L316
AIWaveTargetUnit(obstruction)
// L399
AIWaveTargetUnit(obstruction)