Skip to content

onPlayerMove

KabanFriends edited this page Nov 27, 2022 · 1 revision

function: onPlayerMove(event)

A function that is called when a player moves or rotates around.
The event object contains following fields:

player : Player

  • The Player that triggered this event.

x : number

  • X coordinate of where the player is moving to.

y : number

  • Y coordinate of where the player is moving to.

z : number

  • Z coordinate of where the player is moving to.

yaw : number

  • Yaw value of where the player is moving to.

pitch : number

  • Pitch value of where the player is moving to.