Workshop.codes
Create

Start Throttle In Direction Last updated November 26, 2024

Description

Sets or adds to the throttle (directional input control) of a player or players such that they begin moving in a particular direction. Any previous throttle in direction is cancelled.

Snippet

Start Throttle In Direction(Event Player, Vector(0, 0, 0), 0, To World, Replace Existing Throttle, Direction And Magnitude);

Properties

Returns: Void
Parameters: Player, Direction, Magnitude, Relative, Behavior, Reevaluation

Player
Type: Player | Array (Player), Default: Event Player
The player or players whose throttle will be set or added to.

Direction
Type: Direction, Default: Vector
The unit direction in which the throttle will be set or added to. This value is normalized internally.

Magnitude
Type: Float, Default: Number
The amount of throttle (or change to throttle). A value of 1 denotes full throttle.

Relative
Type: Relativity, Default: To World
Specifies whether direction is relative to world coordinates or the local coordinates of the player or players.

Behavior
Type: Throttle, Default: Replace Existing Throttle
Specifies whether preexisting throttle is replaced or added to.

Reevaluation
Type: ThrottleReeval, Default: Direction And Magnitude
Specifies which of this action's inputs will be continuously reevaluated. This aciton will keep asking for and using new values from reevaluated inputs.

Workshop.codes