mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Updated Timer (markdown)
1 parent
0ba9d6c122
commit
5573ed530c
1 file changed
+4
-4
+4
-4
@@ -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);
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user