Hi ich bräuchte mal wieder Eure Hilfe !
Ich will an dem 2. Straßenanschluß eine andere Straße hinsetzen ( mit Parkbuchten ) allerdings wird dort ja die addRoadEdgeMapped benutzt für die Radienanpassung !
Soweit läd alles aber wenn ich die Station mit dem 2. Anschluß bauen will kommt die Fehlermeldung:
Ich hoffe mir kann jemand sagen wie ich es richtig schreiben muß damit die addRoadEdgeMapped als roadEdges genommen werden !?!
Hier mal der passende Quellcode und die Funktion dazu
Code
if (config.stationType == "through" and config.streetSecondConnection == 1 and config.numTracks == 2) then
local roadLeftX = -config.stationWidth / 2 - 21.0
local roadRightX = config.stationWidth / 2 + 11.0
local roadY = -stationLength / 2 + 12
local roadLen = 20
local terrainFaces2 = {}
local numSegments = #config.platformConfig.firstPlatformParts
--addRoadEdgeMapped({ roadLeftX, roadY, 0 }, { roadLeftX - roadLen, roadY, 0 })
--addRoadEdgeMapped({ roadRightX, roadY, 0 }, { roadRightX + roadLen, roadY, 0 })
roadEdges = { {addRoadEdgeMapped({ roadLeftX, roadY, 0 }, { roadLeftX - roadLen, roadY, 0 })}, {addRoadEdgeMapped({ roadRightX, roadY, 0 }, { roadRightX + roadLen, roadY, 0 }) } }
snapNodes[#snapNodes+1] = 5
snapNodes[#snapNodes+1] = 7
addModelMapped(config.stairs, { roadLeftX , roadY, 0 }, { 180, 0, 0 })
addModelMapped(config.stairs, { roadRightX , roadY, 0 })
result.edgeLists[#result.edgeLists + 1] = {
type = "STREET",
params = { type = "parking_lot.lua" },
edges = roadEdges,
snapNodes = snapNodes
}
end
Alles anzeigen