On Hold Death Mod

Discussion in 'Programming' started by Matiss_Productions, Jul 26, 2025 at 2:12 PM.

  1. Matiss_Productions

    Matiss_Productions
    Expand Collapse

    Joined:
    Saturday
    Messages:
    3
    Hello! I want to make a mod in Beamng that gives you a full black screen when you crash for 3 seconds, I have made the UI, but i have real hard times figuring out the scripting. Can anyone help me please! I will really appreciate it!

    Thank You!
     
  2. neymar_19932

    neymar_19932
    Expand Collapse

    Joined:
    Apr 17, 2025
    Messages:
    208
    Any progress?
     
  3. Matiss_Productions

    Matiss_Productions
    Expand Collapse

    Joined:
    Saturday
    Messages:
    3
    No... Im still trying to learn and its not easy, but i wont give up. i will learn it soon, Do you want to help me or just asking?
     
  4. neymar_19932

    neymar_19932
    Expand Collapse

    Joined:
    Apr 17, 2025
    Messages:
    208
    Read the rules
     
  5. Matiss_Productions

    Matiss_Productions
    Expand Collapse

    Joined:
    Saturday
    Messages:
    3
  6. SupraTech

    SupraTech
    Expand Collapse

    Joined:
    Jan 6, 2025
    Messages:
    413
    Bro. @Matiss_Productions has posted correctly. He is in the section of asking.
     
    • Like Like x 1
  7. elimiel2

    elimiel2
    Expand Collapse

    Joined:
    Feb 12, 2025
    Messages:
    914
    Cool
     
    • Like Like x 1
  8. neymar_19932

    neymar_19932
    Expand Collapse

    Joined:
    Apr 17, 2025
    Messages:
    208
    OK I didnt know it
     
  9. SupraTech

    SupraTech
    Expand Collapse

    Joined:
    Jan 6, 2025
    Messages:
    413
    dont worry
     
  10. MarcDoesRacing

    MarcDoesRacing
    Expand Collapse

    Joined:
    Dec 21, 2022
    Messages:
    790
    If you don't even know that these forums have rules then maybe you shouldn't be on the forums.
     
    • Agree Agree x 2
  11. r3eckon

    r3eckon
    Expand Collapse

    Joined:
    Jun 15, 2013
    Messages:
    606
    My mod has that feature, without going too much into details once you got your death screen UI built there's a few steps to use it:

    1. When a death causing crash is detected (through a lua script) you switch to the UI layout that only has your death screen app.
    2. Depending on what you want you can then start a fade in animation, increasing the opacity of the black color over like a second.
    3. Have some buttons that the user can press to reset/respawn or do it automatically after a certain delay.

    If you haven't done so already I suggest you take a look at some code for basic UI apps to know what you need to do to interact between lua and your UI app. You can call javascript functions from lua using guihooks.trigger and basically do the same from js to call lua functions. To detect your death causing crash it's mostly going to involve G force values.
     
  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