> 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/virtual-entities-vx/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.

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>
