DestroyTimer: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
Example usage of timers can be found in the traffic light script: | |||
https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/master/trafficlights/trafficlights_s.lua#L35 | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
*[[Delay]] | |||
*[[GetTimerCount]] | |||
*[[GetAllTimers]] | |||
*[[IsValidTimer]] | |||
*[[CreateTimer]] | |||
*[[CreateCountTimer]] | |||
*[[DestroyTimer]] | |||
*[[PauseTimer]] | |||
*[[UnpauseTimer]] | |||
*[[GetTimerRemainingTime]] |
Latest revision as of 10:58, 1 September 2020
Description
Destroys a timer created with CreateTimer or CreateCountTimer.
Syntax
DestroyTimer(timer)
Parameters
- timer
The timer identifier.
Return Value
- Returns true if success, false on error.
Example
Example usage of timers can be found in the traffic light script: https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/master/trafficlights/trafficlights_s.lua#L35