Skip to main content

MovementStateChanged

Gets called when player's movement state change. Such as from walking to running, sneaking and opposite way around.

Start a script section

!-- OnEvent MovementStateChanged
-- require @evPlayer $evOldState $evNewState

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerMovementStateChangedEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player that invoked the event.
$evOldStatePlayerMovementState enum valueGets the old movement state.
$evNewStatePlayerMovementState enum valueGets the new movement state.