Community ProtoFlux Library/AmasterAmaster/Time/Countdown

From Resonite Wiki
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.