# Train

The Train VO is a special vehicle object that players can enter. While inside, players are unable to move but can freely look around.

To control player entry and exit:

* Use the *InVehicle* attribute:
  * Set *InVehicle* to `True` to move the player into the vehicle.
  * Set *InVehicle* to `False` to eject the player from the vehicle.

Entry and exit can be customized by the author, who may add buttons around or within the train to allow players to control when they enter or leave the vehicle.

<figure><img src="/files/PhC7DuaVhklmZvDlikTi" alt=""><figcaption><p>Moving the player into the Train</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.siminsights.com/virtual-entities-vx/special-virtual-objects/train.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
