Difference between revisions of "Timer (LogiX node)"
Jump to navigation
Jump to search
(→Inputs & Outputs: restructures as a side by side to visually match how nodes look in-game) |
(Update to new node style & update category) |
||
Line 1: | Line 1: | ||
<languages></languages> | <languages></languages> | ||
<translate> | <translate> | ||
− | + | <!--T:1--> | |
+ | {{Infobox Logix Node | ||
+ | | Name = Timer | ||
+ | | Image =[[File: TimerNodeNode.png | noframe | 128px | 'Timer' LogiX node ]] | ||
+ | | Input0Type = Float | Input0Name = Interval | ||
+ | | Input1Type = User | Input1Name = UpdatingUser | ||
+ | | Output0Type = Impulse | Output0Name = Pulse | ||
+ | }} | ||
− | <!-- | + | <!--T:2--> |
+ | The '''Timer''' node fires impulses from <code>Pulse</code> separated by the number of seconds specified by the <code>Interval</code> input. | ||
− | == | + | == Usage == <!--T:3--> |
− | + | Each frame update, this node checks whether a number of seconds greater than or equal to the <code>Interval</code> input have elapsed. If they have, an impulse is fired owned by the <code>UpdatingUser</code>. If no <code>UpdatingUser</code> is provided, the default owner is the world host. If a null </code>UpdatingUser</code> is provided, the node will not fire at all. | |
− | |||
− | ! | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Examples == <!--T:4--> | |
− | + | == Node Menu == <!--T:5--> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == Node Menu == | ||
</translate> | </translate> | ||
− | [[Category:LogiX|Timer]] | + | [[Category:LogiX{{#translation:}}|Timer]] |
− | [[Category:LogiX: Flow|Timer]] | + | [[Category:LogiX:Flow{{#translation:}}|Timer]] |
− | {{:NodeMenu-Flow}} | + | {{:NodeMenu-Flow{{#translation:}}}} |
Revision as of 14:36, 10 July 2021
Timer | ||
---|---|---|
Inputs | ||
Float | Interval | |
User | UpdatingUser | |
Outputs | ||
Impulse | Pulse |
The Timer node fires impulses from Pulse
separated by the number of seconds specified by the Interval
input.
Usage
Each frame update, this node checks whether a number of seconds greater than or equal to the Interval
input have elapsed. If they have, an impulse is fired owned by the UpdatingUser
. If no UpdatingUser
is provided, the default owner is the world host. If a null UpdatingUser is provided, the node will not fire at all.