# Experience Level Of Unit

Grammar — Experience level of unit
FlagsNative | Function

Returns the experience value of a unit.

# Arguments

  • unit — Unit

Returns — int

native int UnitLevel(unit inUnit);

# Supported triggers

Category: Unit / Attributes And Experience

# Examples

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L3295
UnitLevel(libSwaC_gv_zS_SwarmHeroUIUnit[lp_index])

# mods/heroes.stormmod

MapScript.galaxy

// L1483
UnitLevel(libGame_gv_players[libGame_gf_HeroKilledPlayer()].lv_heroUnit)
// L1483
UnitLevel(libGame_gv_players[libGame_gf_HeroKilledPlayer()].lv_heroUnit)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L1763
UnitLevel(lp_viking)
// L5167
UnitLevel(libGame_gv_players[lv_abathurPlayer].lv_heroUnit)
// L12258
UnitLevel(libGame_gv_players[lv_leoricPlayer].lv_heroUnit)
// L17151
UnitLevel(libGame_gv_players[lv_deadPlayer].lv_heroUnit)

# mods/heroesdata.stormmod

GameLib.galaxy

// L10238
UnitLevel(libGame_gv_players[lp_playerIndex].lv_heroUnit)
// L10485
UnitLevel(lp_hero)
// L11768
UnitLevel(libGame_gv_players[lp_player].lv_heroUnit)
// L16942
UnitLevel(libGame_gv_players[lv_deadPlayer].lv_heroUnit)
// L17367
UnitLevel(lv_deadUnit)
// L17388
UnitLevel(libGame_gv_players[lv_deadPlayer].lv_heroUnit)
// L17430
UnitLevel(lv_deadUnit)
// L17442
UnitLevel(libGame_gv_players[lv_deadPlayer].lv_heroUnit)
// L17512
UnitLevel(libGame_gv_players[lv_deadPlayer].lv_heroUnit)

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L2039
UnitLevel(libGame_gv_players[lp_awardPlayer].lv_heroUnit)
// L2048
UnitLevel(libGame_gv_players[lv_deadUnitOwner].lv_heroUnit)
// L2241
UnitLevel(lv_heroUnit)

# mods/heroesdata.stormmod

StartingExperienceLib.galaxy

// L1750
UnitLevel(libGame_gv_players[libStEx_gv_pLAYER_01_USER].lv_heroUnit)

# mods/heromods/chogall.stormmod

LibHCHO.galaxy

// L2146
UnitLevel(libGame_gv_players[lv_deadPlayer].lv_heroUnit)

# mods/heromods/guldan.stormmod

LibHGUL.galaxy

// L387
UnitLevel(libGame_gv_players[lv_deadPlayer].lv_heroUnit)

# mods/heromods/malthael.stormmod

LibHMTH.galaxy

// L447
UnitLevel(libGame_gv_players[lv_player].lv_heroUnit)

# mods/warcoop/warclassic.sc2mod

WarClassic.galaxy

// L1068
UnitLevel(lv_u)

# mods/warcoop/warclassicsystem.sc2mod

WarClassicSystem.galaxy

// L56
UnitLevel(u)

# mods/warcoop/warmeleeai.sc2mod

MeleeWaveAI.galaxy

// L27
UnitLevel(u)