Skip to content

Delay Input

170

Description The Delay Input node introduces a timed buffer between an input change and the resulting output change. It allows for granular control by providing separate delay settings for when a signal turns on (0 to 1) and when it turns off (1 to 0).

Use Cases * Validation Delays: Require a player to hold a physical button for 2 seconds (using the 0-1 delay) before an action is confirmed, preventing accidental triggers. * Automatic Shut-off: Keep a light or magnetic lock active for a specific duration after a sensor stops detecting a player (using the 1-0 delay). * Process Indicators: Use the running output to activate a "loading" LED or sound while the node is counting down a delay. * Pneumatic systems The Delay Input node is also essential when working with pneumatic systems; for instance, where one piston locks a door and another opens it. Since piston movement is not an atomic operation and takes time to complete, you must unlock first and then delay the opening action—likewise, when closing, the door should close immediately, but the locking mechanism should trigger only after a short delay to ensure the door is securely shut. This node allows you to easily implement such multi-step IN/OUT sequencing with precise timing.

Connectors in

  • in [type: bool]: The boolean signal to be delayed.

Connectors out

  • out [type: bool]: The output signal reflecting the delayed state.
  • running [type: bool]: High/True while a delay timer is currently active.

Node properties

  • time 0-1 (ms) [type: integer]: The delay applied when the input changes from false to true.
  • time 1-0 (ms) [type: integer]: The delay applied when the input changes from true to false.

Connectors in

  • in [type: bool]

Connectors out

  • out [type: bool]
  • running [type: bool]

Node properties

  • time 0-1 (ms) [type: integer]
  • time 1-0 (ms) [type: integer]