BlzSetUnitAbilityCooldown
- Parameters
-
whichUnit unit
Target unit (handle).
abilId integer
Rawcode of ability.
level integer
Ability level.
cooldown real
New cooldown.
- comment
Changes(set) an ability’s cooldown at runtime for a specific unit.
- note
It does not reduce the cooldown if the ability is currently on CD, it will have its new cooldown after the CD is over though.
- note
Cooldown is a real, which means that it supports negative and positive numbers with decimals, in this case setting it to negative allows you to reduce an ability’s cooldown.
- patch
1.29
- return type
nothing
- Source code
native BlzSetUnitAbilityCooldown takes unit whichUnit, integer abilId, integer level, real cooldown returns nothing
- Source
- unit.j
- wc3modding.com
- BlzSetUnitAbilityCooldown