Help Needed: "Advanced Safety Systems" Mod – Lua Coding Assistance Wanted

Discussion in 'Programming' started by Jack The Fox, May 9, 2025 at 12:18 AM.

  1. Jack The Fox

    Jack The Fox
    Expand Collapse

    Joined:
    Jan 22, 2025
    Messages:
    19
    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
     
    #1 Jack The Fox, May 9, 2025 at 12:18 AM
    Last edited: May 9, 2025 at 12:34 AM
  2. elimiel2

    elimiel2
    Expand Collapse

    Joined:
    Feb 12, 2025
    Messages:
    742
    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
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice