ProtoFlux:Fire While True: Difference between revisions

From Resonite Wiki
Create Fire While True
 
m fix script
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name":"Condition", "Type":"Boolean"}
{"Name":"Condition", "Type":"bool"}
]
]
|Outputs=
|Outputs=
Line 13: Line 13:
[
[
{"Name":"UpdatingUser", "Type":"User"},
{"Name":"UpdatingUser", "Type":"User"},
{"Name":"SkipIfNull", "Type":"Bool"}
{"Name":"SkipIfNull", "Type":"bool"}
]
]
|}}
|}}
Line 23: Line 23:
== Inputs ==  
== Inputs ==  


=== Condition (Boolean) ===
=== Condition (bool) ===
The value that needs to be true for this node to start sending impluses out of OnUpdate.
The value that needs to be true for this node to start sending impluses out of OnUpdate.


Line 29: Line 29:
The User who will monitor the input Condition boolean and will handle sending the impulses across the network. If they don't see the value as true it won't fire, even if someone else does see it true.
The User who will monitor the input Condition boolean and will handle sending the impulses across the network. If they don't see the value as true it won't fire, even if someone else does see it true.


=== SkipIfNull (Nullable<Bool>) ===
=== SkipIfNull (Nullable<bool>) ===
TODO
TODO



Revision as of 01:20, 14 January 2024

Fire While True
Condition
OnUpdate
UpdatingUser
null
SkipIfNull
null
Flow


Usage

You can use this node for constantly firing a gun, or something where a drive cannot be used and you need to create events every game tick while a value is true.

Inputs

Condition (bool)

The value that needs to be true for this node to start sending impluses out of OnUpdate.

UpdatingUser (User):

The User who will monitor the input Condition boolean and will handle sending the impulses across the network. If they don't see the value as true it won't fire, even if someone else does see it true.

SkipIfNull (Nullable<bool>)

TODO

Outputs

OnUpdate (Impulse)

Will send impulses at the game tick rate of the user in UpdatingUser only while UpdatingUser sees Condition as true.