Both sides previous revision
Previous revision
|
Next revision
Both sides next revision
|
modding:vehiclebasics [2021/06/14 11:14] yoshi [Emissions] |
modding:vehiclebasics [2021/06/14 11:21] yoshi [Player Controlled Vehicles] |
| |
-- RAIL only | -- RAIL only |
multipleUnitOnly = false, -- | multipleUnitOnly = false, -- display only as part of multiple units |
reversible = false -- optional, if vehicle is reversible - for RAIL vehicles only | reversible = false, -- optional, if vehicle is reversible - for RAIL vehicles only |
| departureDelay = 2500 -- optional, adjusts the timing for the departure of the vehicle, see below |
}, | }, |
</code> | </code> |
* ''multipleUnitOnly'' is a value that hides the model itself from the buy menu when set to ''true''. It is still usable in [[:modding:vehicletypes#multiple_units|multiple units]] though. | * ''multipleUnitOnly'' is a value that hides the model itself from the buy menu when set to ''true''. It is still usable in [[:modding:vehicletypes#multiple_units|multiple units]] though. |
* ''reversible'' specifies if this vehicle is capable of being used in push/pull trains. See the [[modding:vehicleadvancedtopics#reversible_trains|reversible trains details]] for more information. | * ''reversible'' specifies if this vehicle is capable of being used in push/pull trains. See the [[modding:vehicleadvancedtopics#reversible_trains|reversible trains details]] for more information. |
| * ''departureDelay'' is a custom vehicle that describes the time span between the closing of doors until the vehicle departs. If unset, the longest door close animation duration is used. |
===== AI Controlled Vehicles ===== | ===== AI Controlled Vehicles ===== |
Some residents are considered as car owners. If they decide to not use public transportation to travel to their destination, they might use a car. To set a road vehicle model to be used by the AI as a car, it requires an empty metadata block: | Some residents are considered as car owners. If they decide to not use public transportation to travel to their destination, they might use a car. To set a road vehicle model to be used by the AI as a car, it requires an empty metadata block: |