"Freeze Rotation" per LUA script

Eure Foren für alle Diskussionen rund ums Thema Modding.
EnidanBri
Posts: 4
Joined: Tue Oct 10, 2023 5:55 pm

"Freeze Rotation" per LUA script

Post by EnidanBri »

*** english version below ***

Hallo zusammen,

über das vergangene Wochenende habe ich Traffic Splines für all meine Straßen und Kreuzungen erstellt. Ich hatte mir ein LUA-Skript im Editor dafür erstellt. Das einzige, was noch fehlt, ist, die Rotation der trafficSplines auf 0 zu setzen, damit die KI-Fahrzeuge nicht zu langsam fahren. Da ich inkl. aller Straßen und Kreuzungen bereits locker über 1000 Splines habe (mehr kommen noch), würde ich gerne vermeiden, das manuell zu machen.
Deswegen würde ich mir dafür ebenfalls gerne ein LUA-Skript erstellen, aber ich kenne den LUA-Befehl nicht, um "Freeze rotation" aufzurufen, und in der Dokumentation und im Netz finde ich nichts dazu (außer hier, aber der Link führt auf eine virenverseuchte Seite: https://gdn.giants-software.com/thread. ... eadId=7102 ). Ansonsten habe ich Vorerfahrung mit LUA, mir fehlt nur dieser Befehl. Kennt ihn jemand?

Danke + Lieben Gruß,
Nadine

---

Hi everyone,

over the past weekend, I created traffic Splines for all my roads and crossings. I had created a LUA script for this which helped me. The only thing still missing is setting the rotation of all these splines to 0, so that the AI cars dont drive too slow. I already have more than 1000 AI splines (more to come), so I would like to avoid having to do this manually.
Because of that, I would like to create a LUA script also for this part, but I dont know the LUA command to invoke the "freeze (rotation)" function, and I cant find anything neither in the documentation nor in the web (except here, but the link leads to a virus infected site: https://gdn.giants-software.com/thread. ... eadId=7102). I have enough experience with LUA, I only miss the correct command. Does anyone know it?

Thanks in advance & Greetings,
Nadine