User Tools

Site Tools

Urban Games

modding:vehiclebasics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
modding:vehiclebasics [2021/06/14 11:14]
yoshi [Emissions]
modding:vehiclebasics [2022/03/23 12:08]
yoshi [Player Controlled Vehicles]
Line 38: Line 38:
      
   -- 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>
Line 54: Line 55:
   * ''compartmentsList'' is used to define the load of the vehicle. See below for further information.   * ''compartmentsList'' is used to define the load of the vehicle. See below for further information.
  
-Two properties are currently only relevant for rail vehicles:+Three properties are currently only relevant for rail vehicles:
   * ''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 value in milliseconds 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:
modding/vehiclebasics.txt · Last modified: 2022/05/09 19:41 by yoshi