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