Instructions/Lock

From Desynced Wiki


Lock
     
     Run one instruction at a time
Lua ID lock
Category Flow
Icon Unlocked.png



Description[edit | edit source]

When introduced to a behavior it restores the standard calculation rate to normal.

Uses[edit | edit source]

Some behaviors are calculation heavy or require more responsiveness between actions, which is where one would introduce the Unlock instruction. Lock is introduced where it is required that instruction execution speed returns to normal.

Attention must be paid to behaviors that create loops or are intended to repeat frequently as there is a 1000 instruction cap within a 0.2 second interval. If this occurs, the behavior will halt execution. To avoid this, use the Wait Ticks instruction to create artificial intervals or use Lock to restore normal execution speed.

Similar Instructions[edit | edit source]

Unlock