# Wave Target Gather Offense
Grammar — Create a new wave target set to gather at the offensive gather point of town town for player player
Flags —Native
|Function
Creates a new wave target set to gather at the offensive gather point of the specified town. Returns the wave target.
# Arguments
int
— Playerint
— Town
Returns — wavetarget
native wavetarget AIWaveTargetGatherO(
int player,
int town,
);
# Related
Category: AI Advanced / Waves / Functions
- Create Wave Info —
waveinfo
— AIWaveInfoCreate - Create Wave Info From Wave —
waveinfo
— AIWaveInfo - Create Wave —
wave
— AIWaveCreate - Wave Unit Count —
int
— AIWaveUnitCount - Wave State —
int
— AIWaveState - Wave Target Unit —
wavetarget
— AIWaveTargetUnit - Wave Target UnitGroup —
wavetarget
— AIWaveTargetUnitGroup - Wave Target Unit Point —
wavetarget
— AIWaveTargetUnitPoint - Wave Target Point —
wavetarget
— AIWaveTargetPoint - Wave Target Player —
wavetarget
— AIWaveTargetPlayer - Wave Target Melee —
wavetarget
— AIWaveTargetMelee - Wave Target Melee Harass —
wavetarget
— AIWaveTargetMeleeHarass - Wave Target Merge —
wavetarget
— AIWaveTargetMerge - Wave Target Patrol —
wavetarget
— AIWaveTargetPatrol - Wave Target Escort —
wavetarget
— AIWaveTargetEscort - Wave Target Escort No Leash —
wavetarget
— AIWaveTargetEscortNL - Wave Target Gather Offense —
wavetarget
— AIWaveTargetGatherO - Wave Target Gather Defense —
wavetarget
— AIWaveTargetGatherD - Wave Target Harass Retreat —
wavetarget
— AIWaveHarassRetreat - Wave Target Region —
wavetarget
— AIWaveTargetRegion - Wave Get Target —
wavetarget
— AIWaveGetTarget - Is Wave In Combat —
bool
— AIWaveIsInCombat - Wave Time In Combat —
int
— AIWaveGetTimeInCombat - Wave Time Since Combat —
int
— AIWaveGetTimeSinceCombat - Wave Time Since Ordered —
int
— AIWaveGetTimeSinceOrdered - Wave Eval —
int
— AIWaveEval - Wave Eval Ratio —
int
— AIWaveEvalRatio - Eval Ratio —
int
— AIEvalRatio - Wave Get —
wave
— AIWaveGet - Wave Type —
int
— AIWaveType - Get Best Attack Target Point —
point
— AIGetBestTarget - Wave To String —
string
— AIWaveToString - Wave To Text —
text
— AIWaveToText
# Examples
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:279
if (state != c_waveStateIdle) {
DebugAIPlayerWave(player, "main2 set main = idle at gather offense");
AIWaveSetType(w, c_waveStateIdle, AIWaveTargetGatherO(player, c_townMain));
}
}
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:609
int delay = FixedToInt(AIGetTime()) + RandomInt(60, 90);
AIWaveSetType(w, c_waveStateIdle, AIWaveTargetGatherO(player, c_townMain));
AISetUserInt(player, c_delayNextAttack, delay);
if (state == e_attackState_Wait) {
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:746
if (AIWaveState(w) != c_waveStateIdle) {
DebugAIPlayerWave(player, "turtle set attack = idle at gather offense");
AIWaveSetType(w, c_waveStateIdle, AIWaveTargetGatherO(player, c_townMain));
}
return;
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:814
DebugAIPlayerWave(player, "attack2 merge main -> attack; set attack = retreat to gather offense");
AIWaveMerge(player, c_waveMain, c_waveAttack);
AIWaveSetType(w, c_waveStateRetreat, AIWaveTargetGatherO(player, c_townMain));
}
return;
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:823
else if (state == e_attackState_Retreat) {
DebugAIPlayerWave(player, "attack3 set attack = retreat to gather offense");
AIWaveSetType(w, c_waveStateRetreat, AIWaveTargetGatherO(player, c_townMain));
AISetAttackState(player, e_attackState_InRetreat);
return;
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:832
else if (state == e_attackState_DropRetreat) {
DebugAIPlayerWave(player, "attack3drop set attack = drop retreat to gather offense");
AIWaveSetType(w, c_waveStateDropRetreat, AIWaveTargetGatherO(player, c_townMain));
AISetAttackState(player, e_attackState_InRetreat);
return;
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:884
if (AIWaveState(w) != c_waveStateIdle) {
DebugAIPlayerWave(player, "attack5 set attack = idle at gather offense");
AIWaveSetType(w, c_waveStateIdle, AIWaveTargetGatherO(player, c_townMain));
}
}