Vehicles
These actions drive your locomotives. Every script works with one selected vehicle at a time: first select a vehicle, and all vehicle actions after it control that vehicle.
| Action | What it does |
|---|---|
| Select vehicle | Choose which vehicle the next actions apply to. |
| Select from feedback | Select the vehicle that a feedback sensor detects (RailCom). |
| Set speed | Drive at a given speed, from 0 to 100%. |
| Stop vehicle | Set the speed to 0. |
| Set direction | Drive forward or reversed. |
| Toggle direction | Switch to the opposite direction. |
| Set function | Turn lights, sounds or other functions on or off. |
| Set profile | Apply one of the vehicle's profiles (idle, shunting, slow, medium, fast). |
| Store state | Remember the vehicle's speed, direction and functions. |
| Restore state | Put the vehicle back to the stored state. |
INFO
When no vehicle is selected, the vehicle actions do nothing and the script simply continues.

