→Example
No edit summary |
|||
| Line 23: | Line 23: | ||
else | else | ||
-- do stuff when cooldown is not active | -- do stuff when cooldown is not active | ||
end | |||
<!-- end code --> | |||
or | |||
<!-- begin code --> | |||
local start, duration, enable = GetActionCooldown(slot); | |||
if ( start == 0 ) then | |||
-- do stuff when cooldown is not active | |||
else | |||
-- do stuff when cooldown is under effect | |||
end | end | ||
<!-- end code --> | <!-- end code --> | ||