Difference between revisions of "Fire On Change (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
Line 35: Line 35:
  
 
== Usage ==
 
== Usage ==
When spawned from the node browser the <code>Value</code> input has an unset dummy data type. This will recast when a valid input is connected. Impulses will only fire for the input user at <code>OnlyForUser</code> and then only when the value changes on that user's instance. If the <code>OnlyForUser</code> input is null, the node's active user is null, or the node cannot otherwise deduplicate the impulse via its internal mechanisms, impulses may be fired by multiple users.
 
  
Do not use [[Local_User_(LogiX_node)|Local User]] with this node, it will confuse the deduplication mechanism. Use [[Local_Fire_On_Change`1_(LogiX_node)|Local Fire On Change]] instead.
+
=== User Handling ===
 +
{{FireOnUserHandling}}
  
 
== Examples ==
 
== Examples ==

Revision as of 12:36, 31 May 2021

Other languages:
English • ‎日本語

The Fire On Change node fires an impulse whenever the input Value changes.


Inputs & Outputs

Inputs
Color Label Type
Value dummy
OnlyForUser User
Outputs
Color Label Type
Pulse Impulse

Usage

User Handling

User Handling

The second input to this node, OnlyForUser, exists to control which users fire the impulse when the Condition is met/changed. Its handling is as follows:

  1. If a User is specified in the OnlyForUser only fire for this user.
  2. If a User is not specified BUT the Node exists parented to a User then fire for the user it is parented to. This usually happens on avatars.
  3. Otherwise fire for all users.

Do not use Local User with this node. It will cause the node to fire for all users. Use {{{TargetPage}}} instead.

It is recommended to specify a user at OnlyForUser to ensure that the user for whom the impulse fires is predictable.


Examples

Node Menu

Flow
Back Events Boolean Latch Delay Delay With Value Dynamic Impulse Receiver Dynamic Impulse Receiver With Value`1
Dynamic Impulse Trigger Dynamic Impulse Trigger With Value`1 Fire On Change Fire On False Fire On True Fire While True For
If Impulse Demultiplexer Impulse Multiplexer Local Fire On Change`1 Local Fire On False Local Fire On True Local Impulse Timeout
Local Leaky Impulse Bucket One Per Frame Pulse Random Sequence Timer Update Updates Delay
Updates Delay With Value While