YesNoOk
avatar

Vel (Triggers) (Read 2919 times)

Started by JustNoPoint, October 17, 2015, 11:50:35 pm
Share this topic:
Vel (Triggers)
#1  October 17, 2015, 11:50:35 pm
  • ******
    • www.justnopoint.com/
Gets the value of the player's velocity. You must specify the component that you want to check, eg. "Vel Y" to check the Y-velocity.

Format:
Vel [component]

Arguments:
[component]
X, Y

Return type:
float

Error conditions:
none

Details:
For Vel X, a positive value indicates that the player is moving forward. (This behavior is the opposite of HitVel X's behavior.) For Vel Y, a positive value indicates that the player is moving downward.

Example:

Code:
trigger1 = Vel Y >= 0
  True when the player is not moving upward.