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
Previous revision
modding:developerinfo:models:reversiblevehicles [2018/11/30 11:08]
tom
modding:developerinfo:models:reversiblevehicles [2019/03/19 10:18] (current)
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 firstand 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 ​forwards ​           
-           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 ​forwards 
-           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.1543572513.txt.gz · Last modified: 2019/03/19 10:19 (external edit)