# Wave Of Unit

Grammar — Wave of unit
FlagsNative | Function

Returns the wave a unit belongs to.

# Arguments

  • unit — Unit

Returns — wave

native wave AIUnitGetWave(unit u);

Category: AI / MiscCampaign / Functions

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L3669
AIUnitGetWave(EventUnit())
// L3676
AIUnitGetWave(EventUnit())
// L394
AIUnitGetWave(UnitGroupLoopCurrent())
// L3669
AIUnitGetWave(EventUnit())
// L3676
AIUnitGetWave(EventUnit())
// L394
AIUnitGetWave(UnitGroupLoopCurrent())
// L2631
AIUnitGetWave(gv_zagara)
// L2631
AIUnitGetWave(gv_zagara)
// L473
AIUnitGetWave(auto2439952A_var)
// L2599
AIUnitGetWave(UnitGroupUnit(lv_attackWaveUnits, 1))
// L6278
AIUnitGetWave(autoAA8579C6_var)
// L2926
AIUnitGetWave(autoE0C2EB0B_var)
// L4941
AIUnitGetWave(UnitGroupUnit(UnitGroup(null, gv_pLAYER_03_ARTANIS, gv_voidChasm[1].lv_spawnSafetyRegion, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), 1))
// L473
AIUnitGetWave(auto2439952A_var)
// L2599
AIUnitGetWave(UnitGroupUnit(lv_attackWaveUnits, 1))
// L6278
AIUnitGetWave(autoAA8579C6_var)
// L2926
AIUnitGetWave(autoE0C2EB0B_var)
// L4941
AIUnitGetWave(UnitGroupUnit(UnitGroup(null, gv_pLAYER_03_ARTANIS, gv_voidChasm[1].lv_spawnSafetyRegion, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), 1))

# mods/core.sc2mod

TactProtAI.galaxy

// L614
AIUnitGetWave(aiUnit)
// L1499
AIUnitGetWave(aiUnit)

# mods/core.sc2mod

TactTerrAI.galaxy

// L505
AIUnitGetWave(aiUnit)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L881
AIUnitGetWave(UnitGroupLoopCurrent())
// L881
AIUnitGetWave(UnitGroupLoopCurrent())

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L2120
AIUnitGetWave(lp_aIUnit)

# mods/starcoop/starcoop.sc2mod

TactCampAI.galaxy

// L1579
AIUnitGetWave(aiUnit)
// L1604
AIUnitGetWave(aiUnit)

# mods/starcoop/starcoop.sc2mod

TactProtAI.galaxy

// L593
AIUnitGetWave(aiUnit)
// L1500
AIUnitGetWave(aiUnit)

# mods/starcoop/starcoop.sc2mod

TactTerrAI.galaxy

// L485
AIUnitGetWave(aiUnit)
// L1437
AIUnitGetWave(aiUnit)
// L1484
AIUnitGetWave(aiUnit)
// L1629
AIUnitGetWave(aiUnit)
// L1694
AIUnitGetWave(aiUnit)
// L1804
AIUnitGetWave(aiUnit)
// L1833
AIUnitGetWave(aiUnit)

# mods/starcoop/starcoop.sc2mod

TactZergAI.galaxy

// L1557
AIUnitGetWave(aiUnit)
// L1602
AIUnitGetWave(aiUnit)
// L1637
AIUnitGetWave(aiUnit)

# mods/warcoop/warclassicsystem.sc2mod

TacticalAIWar3.galaxy

// L82
AIUnitGetWave(aiUnit)

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L4015
AIUnitGetWave(EventUnit())

# mods/warcoop/warmeleeai.sc2mod

LibW3AI.galaxy

// L297
AIUnitGetWave(lv_c)