# Total Experience Of Unit

Grammar — Total experience of unit
FlagsNative | Function

Returns the total experience a unit possesses.

# Arguments

  • unit — Unit

Returns — fixed

native fixed UnitXPTotal(unit inUnit);

# Supported triggers

Category: Unit / Attributes And Experience

# Examples

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L18041
UnitXPTotal(lv_creatingUnit)

# mods/heroesdata.stormmod

SupportLib.galaxy

// L4685
UnitXPTotal(libGame_gv_players[lv_iterPlayer].lv_heroUnit)
// L4686
UnitXPTotal(libGame_gv_players[lv_iterPlayer].lv_heroUnit)
// L4743
UnitXPTotal(libGame_gv_players[1].lv_heroUnit)
// L4748
UnitXPTotal(libGame_gv_players[lv_iterPlayer].lv_heroUnit)
// L4749
UnitXPTotal(libGame_gv_players[lv_iterPlayer].lv_heroUnit)
// L4753
UnitXPTotal(libGame_gv_players[lv_iterPlayer].lv_heroUnit)
// L4754
UnitXPTotal(libGame_gv_players[lv_iterPlayer].lv_heroUnit)
// L4767
UnitXPTotal(lv_highestXPUnit)
// L4767
UnitXPTotal(lv_lowestXPUnit)

# mods/heromods/dva.stormmod

LibHDVA.galaxy

// L1851
UnitXPTotal(lv_dVaMech)
// L1852
UnitXPTotal(lv_dVaPilot)