> For the complete documentation index, see [llms.txt](https://beyond-sandbox.gitbook.io/realitysdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://beyond-sandbox.gitbook.io/realitysdk/documentation/character/seated-mode.md). Agents can also search and read this documentation through its [MCP server](https://beyond-sandbox.gitbook.io/realitysdk/~gitbook/mcp).

# Seated Mode

### Overview

Seated mode attaches a character to a seat component, disables normal character movement, and constrains the player's VR camera movement around the seated reference point. It is intended for seats, vehicles, turrets, rideable props, and other modded objects where the player should remain anchored to a moving component.

### Basic Blueprint Flow

Use this flow from an interactable seat actor or any Blueprint that has access to the character.

Call the seated functions from a `RealityPlayerCharacter` reference. They are not standalone seat-actor functions.

1. Get the `RealityPlayerCharacter` to seat.
2. Choose a `UPrimitiveComponent` on the seat actor as the attach component.
3. Build a world-space `Seat Target Transform` where the character should be placed.
4. Create a `Reality Seated Camera Movement Limits` struct.
5. From that `RealityPlayerCharacter` reference, call `Seat Character` on the server.
6. When the player exits, call `Unseat Character` from that same character reference on the server with a world-space exit transform.

`Seat Character` and `Unseat Character` are authority-only. Calling them on a client does not send a server RPC by itself. If your interaction starts on the owning client, route it through a custom `Run on Server` event, then call the seated API from that server event.

### Seated Camera Movement Limits

Blueprint type: `FRealitySeatedCameraMovementLimits`

Category: `Reality|Character|Seated`

This struct defines how far the VR camera can move away from the seated reference point. Values are Unreal units, usually centimeters.

| Field        | Default | Meaning                                                  |
| ------------ | ------: | -------------------------------------------------------- |
| `Forward`    |  `10.0` | Maximum camera movement on local +X.                     |
| `Backward`   |  `10.0` | Maximum camera movement on local -X.                     |
| `Right`      |  `10.0` | Maximum camera movement on local +Y.                     |
| `Left`       |  `10.0` | Maximum camera movement on local -Y.                     |
| `Up`         |   `0.0` | Maximum camera movement on local +Z.                     |
| `Down`       |  `30.0` | Maximum camera movement on local -Z.                     |
| `bCanRotate` | `false` | Allows player-controlled turning while seated when true. |

When seated, the player character records the current VR camera and VR origin as the seated reference. Each tick, the camera offset from that reference is clamped to these limits, and the VR origin is adjusted to keep the camera inside the allowed box.

`bCanRotate` controls player-driven rotation while seated. If false, smooth turn, snap turn, room-scale body yaw alignment, and mesh rotation updates are blocked. The seat component can still rotate the seated player; moving or rotating seats should use a replicated attach component.

### Functions

All functions below are Blueprint-visible on `ARealityPlayerCharacter`.

#### Seat Character

Blueprint node: `Seat Character`

Category: `RealityCharacter`

Authority: server only

Parameters:

| Parameter                | Type                                    | Description                                                              |
| ------------------------ | --------------------------------------- | ------------------------------------------------------------------------ |
| `Attach To Component`    | `Primitive Component`                   | Component the character attaches to while seated. Must be valid.         |
| `Seat Target Transform`  | `Transform`                             | World-space transform where the seated character should be placed.       |
| `Camera Movement Limits` | `Reality Seated Camera Movement Limits` | Initial seated camera movement limits.                                   |
| `Seated Animation`       | `Anim Sequence Base`                    | Optional animation asset used by the seated animation path. Can be null. |

Behavior:

* Does nothing if called without authority.
* Does nothing if `Attach To Component` is invalid.
* Stores the seat target relative to the attach component so clients can reconstruct the world transform.
* Disables normal replicated movement while seated.
* Disables the capsule collision, stops movement, clears velocity, and sets movement mode to `None`.
* Attaches the character to the seat component.
* Broadcasts `On Seated`, `On Seated State Changed(true)`, and `On Seated Animation Changed`.

Use this when the player enters a chair, vehicle seat, mounted weapon, or any other anchored seated state.

#### Unseat Character

Blueprint node: `Unseat Character`

Category: `RealityCharacter`

Authority: server only

Parameters:

| Parameter               | Type        | Description                                                                           |
| ----------------------- | ----------- | ------------------------------------------------------------------------------------- |
| `Exit Target Transform` | `Transform` | World-space transform where the character should be placed after leaving seated mode. |

Behavior:

* Does nothing if called without authority.
* Does nothing if the character is not seated.
* Detaches the character.
* Restores the cached capsule collision profile and collision enabled state.
* Moves the capsule to `Exit Target Transform`.
* Restores walking movement mode, clears velocity, and reenables replicated movement.
* Clears seated attachment state.
* Broadcasts `On Seated State Changed(false)` and `On Unseated`.

Use this when the player exits the seat, the seat is destroyed, the vehicle ejects the player, or gameplay needs to force the character back into normal movement.

#### Get Character Is Seated

Blueprint node: `Get Character Is Seated`

Returns true when the character is currently in seated mode.

#### Get Seated Attach Component

Blueprint node: `Get Seated Attach Component`

Returns the component the character is attached to while seated, or null when not seated.

#### Get Seated Target Transform Relative

Blueprint node: `Get Seated Target Transform Relative`

Returns the stored seat target transform relative to the seated attach component. This is not the world transform. To reconstruct the world transform, combine it with the attach component transform.

#### Set Seated Camera Movement Limits

Blueprint node: `Set Seated Camera Movement Limits`

Sets the current seated camera limits on this character instance.

This is a runtime override. It does not change the default limits captured when `Seat Character` was called.

#### Reset Seated Camera Movement Limits

Blueprint node: `Reset Seated Camera Movement Limits`

Restores the current limits to the defaults captured by `Seat Character`.

#### Set Seated Mode Runtime Settings

Blueprint node: `Set Seated Mode Runtime Settings`

Parameters:

| Parameter                | Type                                    | Description                                |
| ------------------------ | --------------------------------------- | ------------------------------------------ |
| `Camera Movement Limits` | `Reality Seated Camera Movement Limits` | New current seated camera limits.          |
| `Seated Animation`       | `Anim Sequence Base`                    | New current seated animation. Can be null. |

Sets both the current camera limits and the current seated animation.

#### Reset Seated Mode Runtime Settings

Blueprint node: `Reset Seated Mode Runtime Settings`

Restores both runtime settings to the defaults captured by `Seat Character`.

#### Get Seated Camera Movement Limits

Blueprint node: `Get Seated Camera Movement Limits`

Returns the current movement limits.

#### Get Default Seated Camera Movement Limits

Blueprint node: `Get Default Seated Camera Movement Limits`

Returns the default movement limits captured when the character was seated.

#### Can Rotate While Seated

Blueprint node: `Can Rotate While Seated`

Returns true when either:

* The character is not seated.
* The character is seated and the current movement limits have `bCanRotate` enabled.

Use this when custom Blueprint logic needs to respect the same seated rotation rule as the built-in locomotion code.

#### Set Seated Animation

Blueprint node: `Set Seated Animation`

Sets the current seated animation. If the animation changes, `On Seated Animation Changed` is broadcast.

#### Reset Seated Animation

Blueprint node: `Reset Seated Animation`

Restores the current seated animation to the default animation captured by `Seat Character`.

#### Get Seated Animation

Blueprint node: `Get Seated Animation`

Returns the current seated animation.

#### Get Default Seated Animation

Blueprint node: `Get Default Seated Animation`

Returns the default animation captured when the character was seated.

### Events

These multicast delegates are Blueprint-assignable on `ARealityCharacter`.

#### On Seated

Parameter: `Seat Component`

Fires when seated state is applied on an instance. On the server, this happens immediately when `Seat Character` succeeds. On clients, this happens when replicated seated state is received and applied.

#### On Unseated

Fires when seated state is cleared on an instance.

#### On Seated State Changed

Parameter: `bNewIsSeated`

Fires with `true` when seated mode is applied and `false` when seated mode is cleared. This is the simplest event to bind for UI, input mode changes, and mod gameplay state.

#### On Seated Animation Changed

Parameter: `Seated Animation`

Fires when seated mode is applied and when `Set Seated Animation` changes the current animation.

### Networking Notes

* `Seat Character` and `Unseat Character` must run on the authority. In multiplayer, call them from server-side Blueprint logic or a custom `Run on Server` event.
* The initial attach component, relative seat transform, exit transform, movement limits, and seated animation are replicated through the seated attachment state.
* Runtime setters such as `Set Seated Camera Movement Limits`, `Set Seated Animation`, and `Set Seated Mode Runtime Settings` change transient current values on the character instance. They are useful for local behavior. If every client needs the same runtime change, drive that change through your own replicated state or call the setter where each relevant instance needs it.
* The attach component should exist on clients and should replicate movement if the seat moves or rotates.
* Unseat the character before destroying or invalidating the seat component.

### Player Character Behavior

`ARealityPlayerCharacter` uses the inherited seated API and adds these behaviors internally:

* Room-scale locomotion translation is suppressed while seated.
* The VR origin is adjusted so the HMD stays inside `FRealitySeatedCameraMovementLimits`.
* Smooth turn, snap turn, room-scale body turning, and mesh yaw updates respect `Can Rotate While Seated`.
* Moving or rotating seats update seated yaw handling so the player follows the seat.
* Motion controllers add the seat actor as a tick prerequisite when seated, which helps controllers update after moving seat actors.

Mod Blueprints normally do not need to call any player-character-specific seated functions directly.

### Recommended Seat Blueprint Pattern

Create a seat actor with:

* A replicated `Primitive Component` used as the seated attach component.
* A scene component or socket that represents the character's seated world transform.
* A scene component or socket that represents the exit world transform.

On interact:

1. Get the interacting character.
2. If the caller is a client, call a custom `Run on Server` event on an authoritative object.
3. On the server, build the movement limits and call `Seat Character`.

On exit:

1. Resolve the exit component or socket world transform.
2. Call `Unseat Character` on the server.

Bind `On Seated State Changed` if the seat, UI, or input logic needs to react after replication.
