# 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`](https://scripting.breeze.rip/api/breeze/event/cancellableevent)

### 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`](https://scripting.breeze.rip/api/breeze/event/cancellableevent).[`cancel`](https://scripting.breeze.rip/breeze/event/cancellableevent#cancel)

***

#### isCancelled()

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

**Returns**

`boolean`

If the event is cancelled or not.

**Inherited from**

[`CancellableEvent`](https://scripting.breeze.rip/api/breeze/event/cancellableevent).[`isCancelled`](https://scripting.breeze.rip/breeze/event/cancellableevent#iscancelled)
