# Current Level For Unit Ability

Grammar — Current level for ability ability on unit
FlagsNative | Function

Returns the current level of the specified ability on the specified unit.

# Arguments

  • unit — Unit
  • string [ gamelink::Abil ] — Ability

Returns — int

native int UnitAbilityGetLevel(unit inUnit, string inAbil);

Category: Ability / Basic

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L16914
UnitAbilityGetLevel(EventUnit(), libNtve_gf_TriggeringProgressAbility())
// L16964
UnitAbilityGetLevel(EventUnit(), "DehakaConsume")

# mods/warcoop/warclassicsystem.sc2mod

TacticalAIWar3.galaxy

// L476
UnitAbilityGetLevel(aiUnit,entryCL)
// L544
UnitAbilityGetLevel(aiUnit,entryHW)

# mods/warcoop/warclassicsystem.sc2mod

WarClassicTactical.galaxy

// L491
UnitAbilityGetLevel(lp_aIUnit, lp_abil)
// L549
UnitAbilityGetLevel(lp_aIUnit, lp_abil)