---
description: This page goes over the onStrafe event.
---

# Strafe event

### **This event is** [**cancellable**](../..#cancellable-events)**.**

This event will be called upon strafing. Handler name is `onStrafe`.

### `setForward(forward): Undefined`

| Argument  | Type     | Description              |
| --------- | -------- | ------------------------ |
| `forward` | `Number` | Forward movement to set. |

Sets the event forward movement.

### `setStrafe(strafe): Undefined`

| Argument | Type     | Description             |
| -------- | -------- | ----------------------- |
| `strafe` | `Number` | Strafe movement to set. |

Sets the event strafe movement.

### `setFriction(friction): Undefined`

| Argument   | Type     | Description            |
| ---------- | -------- | ---------------------- |
| `friction` | `Number` | Event friction to set. |

Sets the event friction.

### `setYaw(yaw): Undefined`

| Argument | Type     | Description      |
| -------- | -------- | ---------------- |
| `yaw`    | `Number` | Event yaw to set |

Sets the event yaw.

### `getForward(): Number`

Returns the forward movement of the event.

### `getStrafe(): Number`

Returns the strafe movement of the event.

### `getFriction(): Number`

Returns the friction of the event.

### `getYaw(): Number`

Returns the yaw rotation of the event.

### `setSpeed(speed, motionMultiplier?): Undefined`

| Argument           | Type     | Description                                                     |
| ------------------ | -------- | --------------------------------------------------------------- |
| `speed`            | `Number` | Event speed to set.                                             |
| `motionMultiplier` | `Number` | Motion multiplier for the speed. **This argument is optional.** |

Applies the speed to the player.
