This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:settimer0 [2021/02/05 16:43] – Rmoved discussion tag Karsten75 | crpl:docs:settimer0 [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== SetTimer0 | ===== SetTimer0 | ||
- | ^Arguments^Result^Notation^ | + | <-amt SetTimer0 |
- | |The value to set timer 0 to.| |'' | + | |
=== Description === | === Description === | ||
Sets the current value of timer 0. | Sets the current value of timer 0. | ||
- | Timers are set to some value, and the decrease by 1 each game frame (even if the core is in a Delay). | + | Timers are set to some value, and then decrease by 1 each game frame (even if the core is in a Delay). |
=== Examples === | === Examples === | ||
- | < | + | < |
+ | # Sets the creeper height to 20 on the crpl core position every 30 frames (1 second) | ||
GetTimer0 eq0 if | GetTimer0 eq0 if | ||
CurrentCoords 20 SetCreeper | CurrentCoords 20 SetCreeper | ||
30 SetTimer0 | 30 SetTimer0 | ||
endif</ | endif</ |