timer.Adjust

From GMod Wiki

Revision as of 15:54, 28 June 2010 by Frugle (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax timer.Adjust( String Name, Number delay, Number reps[, Function func, ...] )
Where is this used?
Description:
Adjusts a running, stopped or paused timer by name.
Returns: Boolean
Part of Library: Timer
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Timer.Adjust]Timer.Adjust [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionCreates a new timer then adjust some values.
Used onNewerShared.png
Code
 
timer.Create("MessageTimer", 10, 5, Msg, "This is the initial message that displays every 10 seconds!")
timer.Adjust("MessageTimer", 2, 0, Msg, "This new message will now display every 2 seconds!") 
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox