This shows you the differences between two versions of the page.
modding:developerinfo:models:reversiblevehicles [2018/11/30 11:08] tom |
modding:developerinfo:models:reversiblevehicles [2019/03/19 10:18] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Reversible vehicles ===== | ||
- | ==== Overview ==== | ||
- | |||
- | Rail vehicles can be configured to not flip when turning around in a station, but instead to reverse direction. The lights and the driver position can be configured accordingly. | ||
- | |||
- | === transportvehicle === | ||
- | |||
- | In order for a train to be able to reverse direction, the first and last transportvehicle in a composition has to be configured with the reversible parameter. | ||
- | |||
- | <code lua> | ||
- | transportVehicle = { | ||
- | -- other configuration | ||
- | seats = { | ||
- | { group = 1, transf = [...], crew = true, standing = false}, -- optional driver in forward position | ||
- | { group = 1, transf = [...], crew = true, standing = false, forward = false}, -- optional driver in backward position | ||
- | }, | ||
- | reversible = true | ||
- | } | ||
- | </code> | ||
- | |||
- | === railvehicle === | ||
- | |||
- | An engine must be configured for the first and the last railVehicle in the composition. All but one engine can be configured as emtpy. | ||
- | |||
- | <code lua> | ||
- | railVehicle = { | ||
- | engines = { | ||
- | { } -- can be left empty for control cars | ||
- | }, | ||
- | configs = { | ||
- | { | ||
- | -- other configurations | ||
- | forwardLights = { }, -- optional list of model ids facing in driving direction while traveling forward | ||
- | forwardEndLights = { }, -- optional list of model ids facing against driving direction while traveling forward | ||
- | backwardLights = { }, -- optional list of model ids facing in driving direction while traveling backwards | ||
- | backwardEndLights = { } -- optional list of model ids facing against driving direction while traveling backwards | ||
- | } | ||
- | } | ||
- | } | ||
- | </code> |