KillTimer: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
__NOTOC__ | {{Server client function}} | ||
This function allows you to kill/halt existing timers | __NOTOC__ | ||
This function allows you to kill/halt existing timers. | |||
==Syntax== | ==Syntax== | ||
Line 16: | Line 17: | ||
This example creates a timer then destroys it straight away. | This example creates a timer then destroys it straight away. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
myTimer = setTimer ( | myTimer = setTimer ( delayedChat, 1000, 1, "Hello, World!" ) | ||
killTimer ( myTimer ) | killTimer ( myTimer ) | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 19:39, 16 August 2007
This function allows you to kill/halt existing timers.
Syntax
bool killTimer ( int timerID )
Required Arguments
- timerID: The timer you wish to halt.
Returns
Returns true if a timer was successfully killed, false if no timer with the ID provided existed.
Example
This example creates a timer then destroys it straight away.
myTimer = setTimer ( delayedChat, 1000, 1, "Hello, World!" ) killTimer ( myTimer )
See Also
- addDebugHook
- base64Decode
- base64Encode
- debugSleep
- decodeString
- encodeString
- fromJSON
- generateKeyPair
- getColorFromString
- getDevelopmentMode
- getDistanceBetweenPoints2D
- getDistanceBetweenPoints3D
- getEasingValue
- getNetworkStats
- getNetworkUsageData
- getPerformanceStats
- getRealTime
- getTickCount
- getTimerDetails
- getTimers
- getFPSLimit
- getUserdataType
- getVersion
- gettok
- isTransferBoxVisible
- setTransferBoxVisible
- hash
- inspect
- interpolateBetween
- iprint
- isOOPEnabled
- isTimer
- killTimer
- md5
- passwordHash
- passwordVerify
- pregFind
- pregMatch
- pregReplace
- removeDebugHook
- resetTimer
- setDevelopmentMode
- setFPSLimit
- setTimer
- ref
- deref
- sha256
- split
- teaDecode
- teaEncode
- toJSON
- tocolor
- getProcessMemoryStats
- utfChar
- utfCode
- utfLen
- utfSeek
- utfSub
- bitAnd
- bitNot
- bitOr
- bitXor
- bitTest
- bitLRotate
- bitRRotate
- bitLShift
- bitRShift
- bitArShift
- bitExtract
- bitReplace