modding:developerinfo:constructions

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:constructions [2018/11/30 15:16]
chregu [Build free streets and tracks]
modding:developerinfo:constructions [2019/03/19 10:18] (current)
Line 320: Line 320:
         freeNodes = { 0, 1 }         freeNodes = { 0, 1 }
       },       },
 +    }
 +    ​
 +    result.edgeObjects = {
 +      {
 +        edge = 0,
 +        param = .5,
 +        left = false,
 +        model = "​railroad/​signal_new_block.mdl"​
 +      }
     }     }
  
Line 330: Line 339:
 To build free streets and tracks it requires: To build free streets and tracks it requires:
   * the tag ''​models''​ should be set, but must be empty   * the tag ''​models''​ should be set, but must be empty
-  * only ''​edgeLists''​ are allowed+  * only ''​edgeLists''​ and ''​edgeObjects''​ are allowed
   * all edges should be "​free"​   * all edges should be "​free"​
  
 To "​free"​ an edge, their nodes should be "​free"​. Free nodes are either snap nodes (defined in ''​snapNodes''​) or nodes defined in ''​freeNodes''​. They can be both at the same time. To "​free"​ an edge, their nodes should be "​free"​. Free nodes are either snap nodes (defined in ''​snapNodes''​) or nodes defined in ''​freeNodes''​. They can be both at the same time.
 +
 +But on the other hand, it is allowed to "​free"​ some nodes/edges of a regular construction. They wont be owned by the construction,​ thus if it gets removed, the "​free"​ edges and their nodes remain.
modding/developerinfo/constructions.1543587386.txt.gz · Last modified: 2019/03/19 10:19 (external edit)