timer.Destroy

From GMod Wiki

Revision as of 14:19, 22 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax timer.Destroy( String Name )
Where is this used?
Description:
Destroys a timer by name so that it cannot be started again.
Returns: nil
Part of Library: Timer
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Timer.Destroy]Timer.Destroy [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionCreates a new timer then removes it.
Used onNewerShared.png
Code
timer.Create("Timer1", 1, 1, somefunction)
timer.Destroy("Timer1")
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox