> For the complete documentation index, see [llms.txt](https://docs.siminsights.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.siminsights.com/hyperskill-studio-authoring/virtual-entities/special-virtual-objects/train.md).

# 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.

## 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.

Authors can customize entry and exit, for example by adding buttons around or within the train that let players choose when they enter or leave the vehicle.

<figure><img src="https://2704613365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxYaaXoZ4YGbVdAnAhdcE%2Fuploads%2FHrwXH8HVR5hyfow0f5Xk%2Fimage.png?alt=media&#x26;token=5a68122a-1927-4359-90f6-0643a3e20574" alt=""><figcaption><p>Moving the player into the Train</p></figcaption></figure>
