Outdated Automatic hazard lights on accident + emergency brakes

Discussion in 'Utilities and programming' started by Davidbc, Sep 2, 2013.

  1. vladmir poopin

    vladmir poopin
    Expand Collapse
    Banned

    Joined:
    Mar 17, 2013
    Messages:
    844
    i would think he would be fine with it just give him credits
     
  2. Svpracer

    Svpracer
    Expand Collapse

    Joined:
    Aug 21, 2013
    Messages:
    242
    Ok then... here goes...
    Here is an updated electrics file (from the latest version 0.3.7.6) with Davidbc's Hazards on impact script file. I only have the hazards on impact in this file.
    Original File: Davidbc
    Update: Me (svpracer)
     

    Attached Files:

  3. pilot941

    pilot941
    Expand Collapse

    Joined:
    Apr 24, 2015
    Messages:
    1
    I updated it for the current version of BeamNG. This activates the hazards under heavy braking over 50 MPH and/or if there is a moderate collision.
     

    Attached Files:

    #23 pilot941, Nov 2, 2015
    Last edited: Nov 2, 2015
  4. Spaceballs the Username

    Spaceballs the Username
    Expand Collapse

    Joined:
    Oct 13, 2015
    Messages:
    568
    This should be fairly simple to fix. Add a timer to wait like half a second after a car is spawned to check for 18 Gs.
     
    • Like Like x 1
  5. Svpracer

    Svpracer
    Expand Collapse

    Joined:
    Aug 21, 2013
    Messages:
    242
    does anyone know if lua commands work across multiple files? Im trying to integrate the electrics hazards into the brake on impact lua file.
     
  6. Haida

    Haida
    Expand Collapse

    Joined:
    Sep 23, 2016
    Messages:
    848
    Dude u bumped a 2 year old thread!
     
  7. cheapasian

    cheapasian
    Expand Collapse

    Joined:
    Jun 16, 2015
    Messages:
    2
    The brake on impact is part of the car's esc and not every car has esc. I updated the electrics lua for the current version of BeamNG. This activates the hazards if there is a moderate collision.
     

    Attached Files:

    • Like Like x 2
  8. TerrableDriverXD

    TerrableDriverXD
    Expand Collapse

    Joined:
    May 14, 2017
    Messages:
    7
    FOUND A BUG-- when i put it in the Vehicles folder and overwritten the LUA, When i went into the game it said fatal exception in vehicle, please reset the vehicle. all the indicator lights and stuff were black, there was no sound, it showed on the tachometer RPM RPM (not a typing error, what it actually said) 0 WHEELSPEED 0 AIRSPEED. HELPPPP
     
  9. Harkin Gaming

    Harkin Gaming
    Expand Collapse

    Joined:
    Jan 17, 2016
    Messages:
    551
    That is because this is a 4 year old mod that is outdated. Try to be careful when posting as bumping threads is highly frowned upon here.
     
  10. IPaulzz444

    IPaulzz444
    Expand Collapse

    Joined:
    Nov 24, 2017
    Messages:
    1
    Hey,I know this post is sooo old,but if you can make an updated version of this for 0.11 version that would be great,now it just gives some fatal errors.
     
  11. Haida

    Haida
    Expand Collapse

    Joined:
    Sep 23, 2016
    Messages:
    848
    It's not possible, author was last seen 2015, sooo...

    Also don't bump old threads. It makes other new users that it's back alive and they are posting there.
     
  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