modding:developerinfo:models:reversiblevehicles

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 Both sides next revision
modding:developerinfo:models:reversiblevehicles [2018/11/30 11:19]
tom
modding:developerinfo:models:reversiblevehicles [2018/12/14 15:39]
tom
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 firstand backward facing models only the last vehicle ​in the composition.
  
 <code lua> <code lua>
 railVehicle = { railVehicle = {
     -- other configurations     -- other configurations
-    engines = { 
-        { }      -- 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>​
modding/developerinfo/models/reversiblevehicles.txt · Last modified: 2019/03/19 10:18 (external edit)