mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-01-01 02:03:32 +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! ");
|
Timer.SetTimer(timedPrint, 1000, 5, "Hello! ");
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
### StopTimer
|
### RemoveTimer
|
||||||
Stops an existing timer.
|
Removes an existing timer.
|
||||||
```lua
|
```lua
|
||||||
StopTimer(timer timer);
|
RemoveTimer(timer timer);
|
||||||
```
|
```
|
||||||
##### Required arguments
|
##### Required arguments
|
||||||
- **timer:** The timer to stop
|
- **timer:** The timer to stop
|
||||||
@ -53,7 +53,7 @@ local helloTimer;
|
|||||||
function timedHello()
|
function timedHello()
|
||||||
print("Hello!");
|
print("Hello!");
|
||||||
-- Stop the timer after running once
|
-- Stop the timer after running once
|
||||||
Timer.StopTimer(helloTimer);
|
Timer.RemoveTimer(helloTimer);
|
||||||
end
|
end
|
||||||
helloTimer = Timer.SetTimer(timedHello, 1000, 5);
|
helloTimer = Timer.SetTimer(timedHello, 1000, 5);
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user