---
description: preMotion
---

# Pre motion event

The `preMotion` event gets called before the player moves. The event's ID is `preMotion`.

### `getForward(): double` <a href="#getforward-double" id="getforward-double"></a>

Returns the player's forward input.

### `getStrafe(): double` <a href="#getstrafe-double" id="getstrafe-double"></a>

Returns the player's sideways input.

### `getFriction(): double` <a href="#getfriction-double" id="getfriction-double"></a>

Returns the friction.

### `setForward(double forward): double`

### `setStrafe(double strafe): double`

### `setFriction(double friction): double`
