Ich hab keine Ahnung was das alles zerstört haben kann, wie erwähnt ich bin Anfänger und verstehe das meiste nicht sondern experimentiere damit nur.
-- Hauptgebäude mit den zwei Straßenzugängen platzieren
StationBuilder.addBuilding(
config, result,
{
building = "hbf_drn_neu_haupt.mdl", x = stationX - 31 + 0.05, y = -21.75, height = 0,
groundFace = { left = stationX - 36.5, top = -178 / 2 - 21.75, length = 178, width = 36, height = -0.05, fill = true },
streets = {
{
alignTerrain = true,
points = { { stationX - 36 - 22, -2.75, 0 }, { stationX - 36, -2.75, 0 } },
snapNodes = { 0 },
},
{
alignTerrain = true,
points = { { stationX - 36 - 22, -40.75, 0 }, { stationX - 36, -40.75, 0 } },
snapNodes = { 0 },
}
}
}
)
-- zweiter Straßenanschluss
if config.streetSecondConnection then
StationBuilder.addBuilding(
config, result,
{
building = "secondstreet.mdl", x = stationXEnd, y = -21.5, height = 0, rotateZ = 0,
street = {
alignTerrain = true,
points = { { stationXEnd + 4 + 20, -21.5, 0 }, { stationXEnd + 4, -21.5, 0 } },
snapNodes = { 0 },
}
}
)
end
Alles anzeigen
und in meinem Code sieht das so aus
-- Hauptgebäude mit den zwei Straßenzugängen platzieren
StationBuilder.addBuilding(
config, result,
{
building = "hbf_drn_neu_haupt.mdl", x = stationX - 31 + 0.05, y = -21.75, height = 0,
groundFace = { left = stationX - 36.5, top = -178 / 2 - 21.75, length = 178, width = 36, height = -0.05, fill = true },
}
)
-- zweiter Straßenanschluss
if config.streetSecondConnection then
StationBuilder.addBuilding(
config, result,
{
building = "secondstreet.mdl", x = stationXEnd, y = -21.5, height = 0, rotateZ = 0,
}
)
end
Alles anzeigen
Nach meinem Verständnis habe ich nur dem spiel die Erklärung genommen wo die Straßen sein müssen und deshalb platziert er sie nicht.
Aber ein Ans snapen und und dadurch eine Nutzbarkeit der Lanes habe ich noch nicht gefunden.