API GetShapeshiftFormCooldown

Returns cooldown information for a specified form. startTime, duration, isActive = GetShapeshiftFormCooldown(index)

Parameters

 * index : Number - Index of the desired form

Returns

 * startTime : Number - Cooldown start time (per ) in seconds.
 * duration : Number - Cooldown duration in seconds.
 * isActive : Flag - Returns 1 if the cooldown is running, nil if it isn't

Example
Displays the seconds remaining on the shapeshift form at index 1 or "Not Active" if there's no cooldown on that form local startTime, duration, isActive = GetShapeshiftFormCooldown(1) if isActive then print("Not Active") else print(string.format("Form 1 has %f seconds remaining", startTime + duration - GetTime)) end