Es getplayermovement

From EventScripts Community Encyclopedia


Overview

Syntax: es_getplayermovement <forwardmove> <sidemove> <upmove> <userid>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: es_xgetplayermovement

Description

Stores the player's current forward movement value, side movement value, and upward movement value (in 3 different variables).

Parameters

  • forwardmove - velocity of the players forward movement.
  • sidemove - velocity of the players sideward movement.
  • upmove - velocity of the players upward movement.


Examples

 // Get the movement direction of the player
 es_getplayermovement fmove smove umove event_var(userid)


Notes

  • If the player is moving backward, downward, or to the left the variables will be negative.


See also

blog comments powered by Disqus