trigger_setspeed

trigger_setspeed

A trigger for setting the speed of the player in a particular axis or direction. If you want to change the player’s velocity, use a push trigger instead. If you want to send the player in a specific direction, use a catapult instead.

Keyvalues #

Horizontal speed mode (HorizontalSpeedMode<integer>)

How the trigger affects the player’s horizontal (x/y axis) speed:

  • 0: Ignore Mode: Does not affect horizontal speed. (Default)
  • 1: Set Exact Mode: Sets the horizontal speed exactly to HorizontalSpeedAmount.
  • 2: Increase Only Mode: Increases the horizontal speed by the HorizontalSpeedAmount.
  • 3: Decrease Only Mode: Decreases the horizontal speed by the HorizontalSpeedAmount.

Vertical speed mode (VerticalSpeedMode<integer>)

How the trigger affects the player’s vertical (z axis) speed:

  • 0: Ignore Mode: Does not affect vertial speed. (Default)
  • 1: Set Exact Mode: Sets the vertial speed exactly to VerticalSpeedAmount.
  • 2: Increase Only Mode: Increases the vertical speed by the VerticalSpeedAmount.
  • 3: Decrease Only Mode: Decreases the vertical speed by the VerticalSpeedAmount.

Horizontal speed amount (HorizontalSpeedAmount<float>)

The horizontal speed used by HorizontalSpeedMode to change the speed. Defaults to 500u/s.

Vertical speed amount (VerticalSpeedAmount<float>)

The vertical speed used by VerticalSpeedMode to change the speed. Defaults to 100u/s.

Direction (Direction<angle>)

The direction of the speed applied. Only the yaw is used as the vertical speed is determined by the vertical speed amount. Defaults to 0 0 0.

Update every intervals (OnThink<integer>)

If the trigger should update every interval:

  • 0: Do not update every interval. (Default)
  • 1: Update every interval.

Interval (Interval<float>)

The length of an interval in seconds. Defaults to 1.0s.

Every tick (EveryTick<integer>)

If the trigger should update every tick:

  • 0: Do not update every tick. (Default)
  • 1: Update every tick.
tag-outline Tags: trigger
folder-open-outline Categories: entity