This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
modding:developerinfo:models:reversiblevehicles [2018/11/30 11:08] tom |
modding:developerinfo:models:reversiblevehicles [2018/12/14 15:39] tom |
||
---|---|---|---|
Line 11: | Line 11: | ||
<code lua> | <code lua> | ||
transportVehicle = { | transportVehicle = { | ||
- | -- other configuration | + | -- other configurations |
seats = { | seats = { | ||
{ group = 1, transf = [...], crew = true, standing = false}, -- optional driver in forward position | { group = 1, transf = [...], crew = true, standing = false}, -- optional driver in forward position | ||
Line 22: | Line 22: | ||
=== railvehicle === | === 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. | + | The visibility of models can be controlled depending on the travel direction. Note that forward facing models only apply to the first, and backward facing models only the last vehicle in the composition. |
<code lua> | <code lua> | ||
railVehicle = { | railVehicle = { | ||
- | engines = { | + | -- other configurations |
- | { } -- can be left empty for control cars | + | |
- | }, | + | |
configs = { | configs = { | ||
{ | { | ||
-- other configurations | -- other configurations | ||
- | forwardLights = { }, -- optional list of model ids facing in driving direction while traveling forward | + | frontForwardParts = { }, -- 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 | + | frontBackwardParts = { }, -- optional list of model ids facing in driving direction while traveling backwards |
- | backwardLights = { }, -- optional list of model ids facing in driving direction while traveling backwards | + | backForwardParts = { }, -- optional list of model ids facing against driving direction while traveling forward |
- | backwardEndLights = { } -- optional list of model ids facing against driving direction while traveling backwards | + | backBackwardParts = { }, -- optional list of model ids facing against driving direction while traveling backwards |
+ | innerForwardParts = { }, -- optional list of model ids shown while traveling forwards | ||
+ | innerBackwardParts = { } -- optional list of model ids shown while traveling backwards | ||
} | } | ||
} | } | ||
} | } | ||
</code> | </code> |