Instructions/Wait Ticks

From Desynced Wiki
Revision as of 14:48, 8 October 2023 by Johan (talk | contribs) (→‎Description)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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