# Create Wave Info
Grammar — Create a new wave info
Flags —Native
|Function
Returns a newly initialized Wave Info object.
Returns — waveinfo
native waveinfo AIWaveInfoCreate();
# 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/core.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:171
targO = AIWaveTargetGatherMelee(player);
AIWaveSet(player, c_waveMain, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveAttack, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert1, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
mods/core.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:172
AIWaveSet(player, c_waveMain, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveAttack, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert1, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert2, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
mods/core.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:173
AIWaveSet(player, c_waveMain, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveAttack, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert1, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert2, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveClearObs, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
mods/core.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:174
AIWaveSet(player, c_waveAttack, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert1, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert2, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveClearObs, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveHome, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
mods/core.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:175
AIWaveSet(player, c_waveDivert1, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert2, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveClearObs, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveHome, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
AIWaveSet(player, c_waveDefend, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
mods/core.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:176
AIWaveSet(player, c_waveDivert2, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveClearObs, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveHome, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
AIWaveSet(player, c_waveDefend, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
mods/core.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:177
AIWaveSet(player, c_waveClearObs, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveHome, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
AIWaveSet(player, c_waveDefend, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
AIWaveSetType(AIWaveGet(player, c_waveMain), c_waveStateIdle, targO);
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeAI.galaxy:256
//--------------------------------------------------------------------------------------------------
void AIMergeUnit (int player, unit u, wave w) {
wave merge = AIWaveCreate(AIWaveInfoCreate(), player, AIGetGatherLocation(player, c_townMain));
AIWaveAddUnit(merge, u);
AIWaveSetType(merge, c_waveStateMerge, AIWaveTargetMerge(w));
mods/liberty.sc2mod — base.sc2data/TriggerLibs/Zerg/Zerg.galaxy:118
}
else {
w = AIWaveCreate(AIWaveInfoCreate(), player, AIWaveTargetGatherDPoint(player, c_townMain));
AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
AIWaveAddUnitPriority(w, u, c_prioWavePeon);
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:206
targO = AIWaveTargetGatherMelee(player);
AIWaveSet(player, c_waveMain, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveAttack, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert1, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:207
AIWaveSet(player, c_waveMain, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveAttack, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert1, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert2, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:208
AIWaveSet(player, c_waveMain, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveAttack, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert1, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert2, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveClearObs, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:209
AIWaveSet(player, c_waveAttack, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert1, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert2, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveClearObs, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveHome, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:210
AIWaveSet(player, c_waveDivert1, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveDivert2, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveClearObs, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveHome, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
AIWaveSet(player, c_waveDefend, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:211
AIWaveSet(player, c_waveDivert2, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveClearObs, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveHome, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
AIWaveSet(player, c_waveDefend, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:212
AIWaveSet(player, c_waveClearObs, AIWaveCreate(AIWaveInfoCreate(), player, targOPoint));
AIWaveSet(player, c_waveHome, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
AIWaveSet(player, c_waveDefend, AIWaveCreate(AIWaveInfoCreate(), player, targDPoint));
AIWaveSetType(AIWaveGet(player, c_waveMain), c_waveStateIdle, targO);
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/MeleeAI.galaxy:256
//--------------------------------------------------------------------------------------------------
void AIMergeUnit (int player, unit u, wave w) {
wave merge = AIWaveCreate(AIWaveInfoCreate(), player, AIGetGatherLocation(player, c_townMain));
AIWaveAddUnit(merge, u);
AIWaveSetType(merge, c_waveStateMerge, AIWaveTargetMerge(w));
mods/swarm.sc2mod — base.sc2data/TriggerLibs/Zerg/Zerg.galaxy:124
}
else {
w = AIWaveCreate(AIWaveInfoCreate(), player, AIWaveTargetGatherDPoint(player, c_townMain));
AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
AIWaveAddUnitPriority(w, u, c_prioWavePeon);
mods/void.sc2mod — base.sc2data/TriggerLibs/Zerg/Zerg.galaxy:130
}
else {
w = AIWaveCreate(AIWaveInfoCreate(), player, AIWaveTargetGatherDPoint(player, c_townMain));
AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
AIWaveAddUnitPriority(w, u, c_prioWavePeon);
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2887
// Implementation
libWCdr_gv_lastSentEnemyWave = AIWaveCreate(AIWaveInfoCreate(), lp_attackingPlayer, lv_gatherpoint);
lv_enemywave = libWCdr_gv_lastSentEnemyWave;
AIWaveSet(lp_attackingPlayer, lv_attackwaveindex, lv_enemywave);