trigger_momentum_onehop

trigger_momentum_onehop

Trigger that teleports the player after only one entry, or if they stay inside for longer than the hold time.

Keyvalues #

Remote Destination (target<target_destination>)

The entity specifying the point to which the player should be teleported.

Local Destination Landmark (landmark<target_destination>)

When “Teleport mode” is “Landmark teleport”, teleported entities are offset from the target by their initial offset from the landmark (this entity).

Velocity Scale Factor (X Y Z) (velocityscale<vector>)

Scale the player’s velocity per-axis. Default is “1 1 1”.

Teleport mode (mode<choices>)

Mode of teleportation.

  • 0: Default (do nothing, just teleport)
  • 1: Reset velocity
  • 2: Keep negative Z (downwards) velocity
  • 3: Redirect velocity to destination angles
  • 4: Landmark teleport

Defaults to 1; reset velocity.

Reorient Landmark (reorient_landmark<choices>)

  • 0: No
  • 1: Yes

When “Teleport mode” is “Landmark teleport”, this will reorient the origin, angles and velocity from the landmark’s local space to the destination’s. This means the destination room does not have to face the same way. Default is No; 0.

Reset the player angles on teleport (resetang<choices>)

  • 0: False
  • 1: True

Resets the view angles of the player after being teleported to the Remote Destination. Default is True; 1.

Fail Teleport (fail<choices>)

  • 0: False
  • 1: True

Indicates whether this teleport is for failing a level. Default is False; 0.

Hold Time (seconds) (hold<float>)

If the player is in this trigger for longer than this (in seconds), teleport them to the most recent progress trigger. The default value is 0.5.

Flags #

Teleport the player on EndTouch() instead of StartTouch() (8388608)
Teleports the user to the Remote Destination when the player leaves the trigger instead of when they first touch it.

Reset hop state if player hops onto another different onehop (32768)

(Enabled by default)

Output #

OnHopNoLongerJumpable(void)

Fires when this trigger is no longer jumpable by the activator.

folder-open-outline Categories: entity