> For the complete documentation index, see [llms.txt](https://riseclients-organization.gitbook.io/rise-6-scripting-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riseclients-organization.gitbook.io/rise-6-scripting-api/api-documentation/events/module-events/strafe-event.md).

# Strafe event

This page goes over the onStrafe event.

### **This event is** [**cancellable**](/rise-6-scripting-api/api-documentation/events.md#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.
