mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-01-01 18:23:32 +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
|
### 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);
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
Loading…
x
Reference in New Issue
Block a user