Vehicle Flags
Overview
This article contains some info on what the various vehicle flags do.
⚠️ Note that some vehicles, particularly aircraft, use flags in unexpected ways.
Vehicle.Flags
Flag | Value | Purpose |
---|---|---|
|
| |
|
| |
|
| |
|
| Inverts (rotate 180°) the vehicle; used for train trailer rotation. |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| Active for trains that are about to leave station, but haven't started moving yet. |
|
| Active for trains arriving at a station but not yet stopped. Active for taxis which have a passenger on board. |
|
| Active for train/monorail engine which is travelling backwards. |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Vehicle returning to place of origin. |
|
| |
|
| Set for vehicles which are importing goods, even when they are returning to facility. |
|
| Set for vehicles which are exporting goods, even when they are returning to facility. |
|
| Road vehicle is moving to a parking spot. |
|
| Active if the vehicle has been given a custom name (eg. by Customize It: Extended mod, or by editing name in vehicle info panel title bar). |
|
| Enables road vehicle dust effect. Set by segment |
|
| Set for cargo trains at station while being loaded with cargo. |
|
| |
|
| The vehicle is dummy traffic. |
|
| Vehicle is travelling underground. Set by segment |
|
| Slope segments set this flag. Set by segment |
|
| |
|
|
Vehicle.Flags2
Flag | Value | Purpose |
---|---|---|
|
| Vehicle is swept away by water (eg. tsunami). Will eventually despawn unless it lands on dry land. |
|
| Vehicle is sucked in to a tornado/chirpnado. Will eventually despawn unless dropped from tornado. |
|
| |
|
|
NetInfo.m_setvehicleflags
When vehicles are travelling along a network prefab, they adopt any flags set in NetInfo.m_setvehicleflags
.
It's mainly used to set the following Vehicle.Flags
:
OnGravel
- gravel roads cause vehicles to show dust effectUnderground
- ?Transition
- ?