DestroyTimer

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
DestroyTimer

Type: Function
Context: Server & Client
Introduced: v1.0

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

See also