Play Sensor: Difference between revisions
m
Create block template, cut slightly excessive detailing
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...") |
-u ndefined- (talk | contribs) m (Create block template, cut slightly excessive detailing) |
||
Line 1: | Line 1: | ||
{{Block | |||
|image=Play Sensor.png | |||
|type=s | |||
|folder=Control | |||
|input1={{Port|e|Before}} | |||
|output1={{Port|e|On Play}} | |||
|output2={{Port|e|After}} | |||
}} | |||
Executes the scripts connected to On Play only on the first tick. Useful for initialization. | |||
== Notes == | == Notes == | ||
* The Play Sensor is often described as "only executing once", but it actually can execute multiple times, if its | * The Play Sensor is often described as "only executing once", but it actually can execute multiple times, if its Before wire is triggered multiple times during the first tick. | ||
* Likewise, if its | * Likewise, if its Before wire is connected to another block and it ''does not'' get triggered during the first tick, the Play Sensor will ''never'' trigger its On Play output. | ||
[[Category:Blocks]] | [[Category:Blocks]] |