SetHeroLevel

Parameters
whichHero unit

The target hero unit.

level integer

New level of the hero.

showEyeCandy boolean

False to hide level-up effects, true to show. The level-up effects include: floating experience gain text, sound and a visual effect.

comment

Sets the hero to chosen level.

The level can only be increased; lowering the level does nothing. Further, the level will not exceed the hero's maximum level set in WorldEditor.

patch

1.00

Source
common.j
return type
nothing
Source code
native          SetHeroLevel        takes unit whichHero, integer level,  boolean showEyeCandy returns nothing