Instructions/Wait Ticks: Difference between revisions

From Desynced Wiki
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
==== Description ====
==== Description ====


 
If left blank, Wait Ticks will wait for 1 game tick (0.2 seconds). Otherwise it will wait a specified amount of game ticks.
==== Uses ====
==== Uses ====
Commonly when the [[Instruction/Unlock|Unlock]] instruction is present, a wait timer may be utilised to avoid exceeding the instruction limit (1000 instructions/tick).
Commonly when the [[Instructions/Unlock|Unlock]] instruction is present, a wait timer may be utilised to avoid exceeding the instruction limit (1000 instructions/tick).


Deliberately slowing the behavior execution down may be desirable in situations where many behaviors are present in order to reduce computation intensity.
Deliberately slowing the behavior execution down may be desirable in situations where many behaviors are present in order to reduce computation intensity.


==== Similar Instructions ====
==== Similar Instructions ====
 
[[Instructions/Request Wait|Request Wait]]


{{Instruction_Bottom}}
{{Instruction_Bottom}}

Latest revision as of 14:48, 8 October 2023


Wait Ticks
     
     Pauses execution of the behavior until 1 or more ticks later (5 ticks=1 second)
Lua ID wait
Category Flow
Icon Wait.png
Argument One: Type Input
Argument One: Name Time
Argument One: Description Number of ticks to wait
Argument One: Data Type num



Description[edit | edit source]

If left blank, Wait Ticks will wait for 1 game tick (0.2 seconds). Otherwise it will wait a specified amount of game ticks.

Uses[edit | edit source]

Commonly when the Unlock instruction is present, a wait timer may be utilised to avoid exceeding the instruction limit (1000 instructions/tick).

Deliberately slowing the behavior execution down may be desirable in situations where many behaviors are present in order to reduce computation intensity.

Similar Instructions[edit | edit source]

Request Wait