SetUnitAbilityLevel

Parameters
whichUnit unit

Target unit

abilcode integer

Abilities' raw code identifier

level integer

New ability level

comment

Sets the new level of unit's ability.

note

You can only set levels which are defined for the current ability. For example, most WC3 abilities have levels 1-3. Setting level <=0 will instead set it to level 1. Setting level >maximum will instead set it to abilities' highest level defined in WorldEditor.

return type
integer
Source code
native SetUnitAbilityLevel takes unit whichUnit, integer abilcode, integer level returns integer
Source
unit.j
wc3modding.com
SetUnitAbilityLevel