1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2026-01-01 10:13:30 +00:00

Updated Timer (markdown)

Robert Beekman 2017-01-01 13:22:25 +01:00
parent a96e966a51
commit 0ba9d6c122

@ -40,13 +40,21 @@ Timer.SetTimer(timedPrint, 1000, 5, "Hello! ");
``` ```
--- ---
### StopTimer ### StopTimer
TODO Stops an existing timer.
#### Syntax:
```lua ```lua
TODO StopTimer(timer timer);
``` ```
##### Required arguments
- **timer:** The timer to stop
#### Example: #### Example:
```lua ```lua
TODO local helloTimer;
function timedHello()
print("Hello!");
-- Stop the timer after running once
Timer.StopTimer(helloTimer);
end
helloTimer = Timer.SetTimer(timedHello, 1000, 5);
``` ```
--- ---