timer.UnPause

From GMod Wiki

Jump to: navigation, search
Function
Syntax timer.UnPause( String Name )
Where is this used?
Description:
Unpauses a running timer by Name. On success, returns true. False otherwise.
Returns: Boolean
Part of Library: Timer
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Timer.UnPause]Timer.UnPause [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionCreates a timer, pause and unpause it again.
Used onNewerShared.png
Code
 
timer.Create("MyTimer", 1, 1, Msg, "Hello World")
 
timer.Pause("MyTimer") //returns true and timer now paused.
timer.Pause("MyTimer") //returns false because the timer is already paused.
 
timer.UnPause("Mytimer") //returns true and timer now running again.
timer.UnPause("MyTimer") //returns false because the timer was already running.
 
timer.Pause("NonExistantTimer") //returns false because timer does not exist.
 
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox