This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
modding:developerinfo:constructions [2018/11/30 15:15] chregu [Build free streets and tracks] |
modding:developerinfo:constructions [2018/12/04 11:22] chregu [Build free streets and tracks] |
||
---|---|---|---|
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 329: | Line 338: | ||
To build free streets and tracks it requires: | To build free streets and tracks it requires: | ||
- | * the tag ''models'' should be set, but 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. |