Workshop.codes
Create

Chase Global Variable Over Time Last updated November 26, 2024

Description

Gradually modifies the value of a Global Variable over time. (A global variable is a variable that belongs to the game itself.)

Snippet

Chase Global Variable Over Time(variableName, 0, 1, Destination And Duration);

Properties

Returns: Void
Parameters: Variable, Destination, Duration, Reevaluation

Variable
Type: Global Variable, Default: A
Specifies which global variable to modify gradually.

Destination
Type: Float | Vector, Default: Number
The value that the global variable will eventually reach. The type of this value may be either a number or a vector, though the variable's existing value must be of the same type before the chase begins.

Duration
Type: Float, Default: Number (1)
The amount of time, in seconds, over which the variable's value will approach the destination.

Reevaluation
Type: Chase Time Reevaluation, Default: Destination And Duration
Specifies which of this action's inputs will be continuously reevaluated. This action will keep asking for and using new values from reevaluated inputs.

Workshop.codes