Hi everyone, I'm working on a BeamNG mod called Advanced Safety Systems, and I could use some help with the Lua coding side of things. The mod is meant to simulate realistic, modern safety systems with advanced behavior. Here's what I want it to do: If the player hasn’t steered or used the throttle/brake for a few seconds, the mod will apply a small automatic acceleration boost. If a vehicle is detected ahead, the boost will automatically cancel and the vehicle will slow down. If the player’s vehicle takes any damage, it should play a custom beep.wav alert. If the player drives off the road or goes over the lines play a custom beep.wav alert. The logic will likely need to run on both the VLua side (for controlling throttle and detecting damage) and possibly the GE side. I have the ideas and mod structure, but I don’t have the scripting knowledge to pull off the more complex parts like monitoring input inactivity or vehicle proximity. If you know how to help—or can point me toward similar examples—I’d really appreciate it! I would also appreciate it so much if someone could give me a full code for the acceleration boost logic (or other logic). I would also greatly appreciate it if you could give me the lane departure warning logic. Full credit will be given, and this mod will be free and open. Thanks! – Jack The Fox
for the one that takes damage, I would look at the post crash test thing cuz its basically the same thing. --- Post updated --- this will be an a.s.s* mod *advanced safety systems