Create indirect write protoflux node page |
forgot variable section |
||
Line 29: | Line 29: | ||
=== Value (Generic) === | === Value (Generic) === | ||
[[:Category:Type|Value]] to write to the value | [[:Category:Type|Value]] to write to the value being wrapped by Variable [[Type:Variable|Variable]] | ||
=== Variable ([[Type:Variable|Variable]] Generic)=== | |||
The [[Type:Variable|Variable]] to write to. | |||
== Outputs == | == Outputs == |
Revision as of 00:54, 3 February 2024
Indirect writes can be commonly found in legacy content that has been migrated from other platforms. Indirect writes take Variable (Variable) as an input, and the type that Variable wraps will determine what Value (Generic) will take as a value. The node will then write Value (Generic) to the field Variable (Variable) wraps.
This is also useful for Multiplexing multiple variables into the Variable (Variable) connection on the indirect write, which can be useful to reduce the nodes needed to write to a set list of variables during a For or While loop.
Inputs
* (Call)
Call this to write the value.
Value (Generic)
Value to write to the value being wrapped by Variable Variable
Variable (Variable Generic)
The Variable to write to.
Outputs
OnWritten (Continuation)
sends an impulse after * (Call) has been impulsed and the value has been written.
OnFail (Continuation)
sends an impulse after * (Call) has been impulsed and the value wasn't able to be written due to a missing target or the variable not wrapping a valid IField`1
Examples
-
A basic setup for making an Indirect Write write to a field shown in the inspector.