Community ProtoFlux Library/AmasterAmaster/Time/Countdown

From Resonite Wiki
Revision as of 03:35, 23 August 2024 by AmasterAmaster (talk | contribs) (Created a page for the Countdown custom node.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a custom ProtoFlux node maintained by AmasterAmaster. Contact the creator of the node (not the Dev Team) with any bugs or issues.
This node was created using an in-game system and has no correlation to the Plugin system. Currently, these types of custom nodes are not officially supported by Resonite.
Countdown
Start
OnStart
Stop
OnStop
Reset
OnReset
Value
OnCountdownFinished
OnlyForUser
Time
RolloverTime
IsRunning
Amaster's Time Library

The Countdown node is similar to the Stopwatch node, as it can start, stop, and reset the timer, and takes in a value to count down from. This node returns the remaining time, the time that passes the stopping point (rollover time), and if this timer is running currently.

Inputs

Start (Call)

Calls to start the countdown.

Stop (Call)

Calls to stop the countdown.

Reset (Call)

Calls the reset the countdown.

Value (float)

The value to countdown from.

OnlyForUser (User)

Makes the OnCountdownFinished output fire only for this user.

Outputs

OnStart (Continuation)

Fires when the countdown begins.

OnStop (Continuation)

Fires when the countdown stops.

OnReset (Continuation)

Fires when the countdown resets.

OnCountdownFinished (Continuation)

Fires when the countdown hits 0. Fires for all users if there is no input from OnlyForUser.

Time (float)

The remaining amount of time before hitting 0.

RolloverTime (float)

The amount of time that has passed beyond hitting 0. Before hitting 0, this will instead show the amount of time remaining.

IsRunning (bool)

Returns true if this node is counting down right now.