mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Updated Timer (markdown)
parent
a96e966a51
commit
0ba9d6c122
16
Timer.md
16
Timer.md
@ -40,13 +40,21 @@ Timer.SetTimer(timedPrint, 1000, 5, "Hello! ");
|
||||
```
|
||||
---
|
||||
### StopTimer
|
||||
TODO
|
||||
#### Syntax:
|
||||
Stops an existing timer.
|
||||
```lua
|
||||
TODO
|
||||
StopTimer(timer timer);
|
||||
```
|
||||
##### Required arguments
|
||||
- **timer:** The timer to stop
|
||||
|
||||
#### Example:
|
||||
```lua
|
||||
TODO
|
||||
local helloTimer;
|
||||
function timedHello()
|
||||
print("Hello!");
|
||||
-- Stop the timer after running once
|
||||
Timer.StopTimer(helloTimer);
|
||||
end
|
||||
helloTimer = Timer.SetTimer(timedHello, 1000, 5);
|
||||
```
|
||||
---
|
||||
Loading…
x
Reference in New Issue
Block a user