# Wave Target Melee

Grammar — Create a new wave target set to attack enemies of the following player player
FlagsNative | Function

Creates a new wave target set to attack enemies of the specified player. Returns the wave target.

# Arguments

  • int — Player

Returns — wavetarget

native wavetarget AIWaveTargetMelee(int player);

Category: AI Advanced / Waves / Functions

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeWaveAI.galaxy:689

                DebugAIPlayerWave(player, "attack1 merge main -> attack; set attack = attack vs. melee target");
                AIWaveMerge(player, c_waveMain, c_waveAttack);
                AIWaveSetType(w, c_waveStateAttack, AIWaveTargetMelee(player));
            }
        }