Play Sensor

Revision as of 19:08, 16 May 2024 by Nikitaivanov (talk | contribs) (Created page with "Executes the scripts connected to it only on the first tick. Useful for initialization. Output: * On Play: Triggers if the current tick is the first tick. /uploads/Play Sensor.png == Notes == * The Play Sensor is often described as "only executing once", but it actually can execute multiple times, if its "before" wire is connected to another block and it is triggered multiple times during the first tick. * Likewise, if its "before" wire is connected t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Executes the scripts connected to it only on the first tick. Useful for initialization.

Output:

  • On Play: Triggers if the current tick is the first tick.

/uploads/Play Sensor.png

Notes

  • The Play Sensor is often described as "only executing once", but it actually can execute multiple times, if its "before" wire is connected to another block and it is triggered multiple times during the first tick.
  • Likewise, if its "before" wire is connected to another block and it _doesn't_ get triggered during the first tick, the Play Sensor will _never_ trigger its "On Play" output.