# Add Learn Ability Level For Unit
Grammar — Add level level(s) to learn ability learnAbility on index index
Flags —Native
|Action
Add learned level(s) the specified learn ability index on the specified unit. Consumes skill points.
# Arguments
unit
— Unitstring
[ gamelink::Abil ] — Learn Abilityint
— Indexint
— Level
Returns — void
native void UnitLearnAbilAddLevel(
unit inUnit,
string learnAbility,
int index,
int level,
);
# Related
Category: Ability / Learn
- [F] —
void
— Reset Unit Learn Ability — ( UnitLearnAbilResetLevel ) - [F] —
void
— Add Learn Ability Level For Unit — ( UnitLearnAbilAddLevel ) - [F] —
int
— Current Learn Ability Level For Unit — ( UnitLearnAbilGetLevel ) - [F] —
void
— Add Skill Points To Unit Learn Ability — ( UnitLearnAbilAddPoints ) - [F] —
int
— Learn Ability Skill Point For Unit — ( UnitLearnAbilGetPoints )
# Examples
# mods/warcoop/warclassicsystem.sc2mod
// L488
UnitLearnAbilAddLevel(lp_target, "War3_LearnHero", lv_i, lv_itLearnedLevel)