Released Mod that disables the police siren when you crash

Discussion in 'Utilities and programming' started by Agent_Y, Oct 30, 2022.

  1. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,445
    The police siren sound gets annoying quickly so I made a really tiny mod that will disable it when you crash the car. The light bar will still work and you can re-enable the siren normally. I hope future game updates won't break this mod but I can't guarantee it.
     

    Attached Files:

    • Like Like x 4
  2. Grimm232

    Grimm232
    Expand Collapse

    Joined:
    Apr 25, 2016
    Messages:
    104
    Thats cool, maybe the devs will do something similar in the future. kinda been wating something like this for awhile lol.
     
  3. _N_S_

    _N_S_
    Expand Collapse

    Joined:
    Oct 28, 2017
    Messages:
    76
    I may be wrong, but it seems it can be done in 1 line :)

    Code:
    return {onBeamBroke = function() if electrics.values.lightbar == 2 then electrics.set_lightbar_signal(1) end end}
     

    Attached Files:

    • Like Like x 1
  4. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,445
    Didn't know you could call onBeamBroke like that, yeah that's definitely faster lol
     
  5. Turbo49>

    Turbo49>
    Expand Collapse

    Joined:
    Apr 1, 2021
    Messages:
    3,240
    Better Call BeamBroke
     
    • Like Like x 3
    • Agree Agree x 2
  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