timer.Adjust
From GMod Wiki
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Timer.Adjust]Timer.Adjust [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Name - This is a unique name of the timer to be adjusted.
- Delay - The new delay in seconds.
- Reps - The new number of repetitions. Use 0 for infinite.
- func - The new function to call.
- ... - Specify any number of extra arguments to pass to the function when it's called.
- You can use timer.Adjust to create a new timer without starting it.