modding:developerinfo:multipleunits

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

modding:developerinfo:multipleunits [2019/03/19 10:18] (current)
Line 1: Line 1:
 +===== Multiple Unit =====
 +
 +==== Overview ====
 +
 +A multiple unit configuration files specifies a set of parameters to define a specific locomotive and wagon configuration. They are stored in ''​.lua''​ files in the folder ''​res\config\multiple_unit\''​.
 +
 +The file has the following format:
 +
 +<code lua>
 +function data()
 +return {
 + vehicles = {
 + { name = "​vehicle/​train/​rabde_12_12_front.mdl",​ forward = true },
 + { name = "​vehicle/​train/​rabde_12_12_waggon.mdl",​ forward = true },
 + { name = "​vehicle/​train/​rabde_12_12_front.mdl",​ forward = false },
 + },
 + name = _("​RABDe 12/12 Mirage"​),​
 + desc = _("​This three-part electric multiple unit was used for commuter traffic in Switzerland. With all-axle-drive and high power, it was optimized for high acceleration. This led to the nickname \"​Mirage\"​."​)
 +}
 +end
 +</​code>​
 +
  
modding/developerinfo/multipleunits.txt · Last modified: 2019/03/19 10:18 (external edit)