> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/events/motionevent.md).

# MotionEvent

Gets called when the player's motion is updated, you can use this event to override the movement.

### Example

```ts
script.addListener("MotionEvent", (event) => {
    // make the player 50% faster    event.x *= 1.5;
    event.z *= 1.5;
});
```

### Extends

* [`CancellableEvent`](/api/breeze/event/cancellableevent.md)

### Properties

#### x

> **x**: `number`

The amount to move the player in the x direction.

***

#### y

> **y**: `number`

The amount to move the player in the y direction.

***

#### z

> **z**: `number`

The amount to move the player in the z direction.

### Methods

#### cancel()

> **cancel**(): `void`

Cancels the event.

**Returns**

`void`

**Inherited from**

[`CancellableEvent`](/api/breeze/event/cancellableevent.md).[`cancel`](/api/breeze/event/cancellableevent.md#cancel)

***

#### isCancelled()

> **isCancelled**(): `boolean`

**Returns**

`boolean`

If the event is cancelled or not.

**Inherited from**

[`CancellableEvent`](/api/breeze/event/cancellableevent.md).[`isCancelled`](/api/breeze/event/cancellableevent.md#iscancelled)
