Returns True/False if Stop Watch is running.


See also Stopwatch functions.

Signature:

isPlaying = Stopwatch_IsPlaying()

Returns:

  • isPlaying - Returns true/false depending on if the Stop Watch is currently counting Down/Up (boolean)

Examples:

-- Practical Usage
if GetCVarBool("Raid_Break") == true then
 if Stopwatch_IsPlaying() then Stopwatch_Clear() end
 SetCVar("Raid_Break", 0)
 Stopwatch_StartCountdown(0, 15, 0) -- Sets the Timer on the Stop Watch
 Stopwatch_Play() -- Starts the Stop Watch
end
This function is defined by the default user interface in Lua. You can find the definition by examining the FrameXML code for the default UI,