Off Delay - ignorantbliss/nba GitHub Wiki

An Off Delay scripting node is used to keep a value 'on' for a certain amount of time after the incoming signal falls to '0'.

Inputs

1> Signal: An incoming signal, often an activation.

Outputs

1> Output: An output signal, either '1' or '0'

Options

1> Time To Wait: The amount of time (in seconds) to hold the signal on

Usage

This node is used if you want to turn a momentary event (such as a Button press) into a longer-lasting event.

When the input value is anything other than zero, the output value is '1'. When the input value then drops down to zero, the output value will remain '1' for the specified number of seconds.

Examples

Building a "Race"

If you have a Button and a Door, you can create a 'race' where the player needs to get from the button to the door in a limited amount of time. The activation signal from the button is connected to the Off Delay node, which is then connected to the door.

If the Time To Wait of the Off Delay node is 5, the player would then have 5 seconds to get from the button to the door.

See Also

On Delay
Ticktock