Prototype/RollingStock: Difference between revisions
Muppet9010 (talk | contribs) (→connection_distance: add description) |
Muppet9010 (talk | contribs) m (→connection_distance: fix line spacing) |
||
Line 28: | Line 28: | ||
=== connection_distance === | === connection_distance === | ||
'''Type''': [[Types/double]] | '''Type''': [[Types/double]] | ||
The distance this rolling stock and another rolling stock will snap to when placing near one another. | The distance this rolling stock and another rolling stock will snap to when placing near one another. | ||
Revision as of 18:17, 5 March 2019
Basics
This type is abstract and cannot be created directly.
The abstract base of all rolling stock. Extends Prototype/Vehicle.
Extensions
- Prototype/ArtilleryWagon artillery-wagon
- Prototype/CargoWagon cargo-wagon
- Prototype/FluidWagon fluid-wagon
- Prototype/Locomotive locomotive
Mandatory properties
This prototype inherits all the properties from Prototype/Vehicle.
max_speed
Type: Types/double
air_resistance
Type: Types/double
joint_distance
Type: Types/double
Maximum joint distance is 15.
Note: There needs to be border at least 0.2 between the bounding box edge and joint.
connection_distance
Type: Types/double
The distance this rolling stock and another rolling stock will snap to when placing near one another.
rail_category
Type: Types/string
The rail category this rolling stock can drive on. Must be "regular" because it is not possible to create other rail categories.
pictures
Type: Types/RotatedSprite
wheels
Type: Types/RotatedSprite
vertical_selection_shift
Type: Types/double
Optional properties
drive_over_tie_trigger
Type: Types/TriggerEffect
Usually a sound to play when the rolling stock drives over a tie.
tie_distance
Type: Types/double
Default: 10.0
back_light
Type: Types/LightDefinition
stand_by_light
Type: Types/LightDefinition
horizontal_doors
Type: Types/Animation
vertical_doors
Type: Types/Animation
color
Type: Types/Color
allow_manual_color
Type: Types/bool
Default: true