List of all usable "Event" sounds (probably incomplete, expanding would be appreciated)

Discussion in 'Content Creation' started by Agent_Y, May 9, 2021.

  1. Ryan Lanz

    Ryan Lanz
    Expand Collapse

    Joined:
    Mar 19, 2021
    Messages:
    6
    Is it possible to create events? I want to make ambient sounds for a map I'm making, but I need a "soundAmbience" event, and I'm not sure how to make those
     
  2. RenAzuma66

    RenAzuma66
    Expand Collapse
    BeamNG Team

    Joined:
    Apr 12, 2018
    Messages:
    1,500
    @DaddelZeit could the materials.json sound event trick work for a map? For context, he's figured out how to make sound events in a materials.json file for vehicle events so I figured maybe he knows a thing or two about it. Although for most instances, you can put in the path of an audio file as an event and it works, so maybe it does here too
     
  3. DaddelZeit

    DaddelZeit
    Expand Collapse

    Joined:
    Jul 17, 2019
    Messages:
    3,461
    Yes, absolutely. It's the same thing. For maps you could even use *.datablocks.json just to make clear what that file does. I personally used this before to create ambiences.
    Stage 1:
    Code:
    {
        "zeit_ambient_1": {
            "name": "zeit_ambient_1",
            "class": "SFXProfile",
            "persistentId": "a0b0b411-7180-4da3-af0b-7550dec2f5b3",
            "description": "AudioLoop2D",
            "filename": "/levels/zeit_snowy/art/sounds/ambience1.ogg"
        },
    }
    Stage 2:
    Code:
    {
        "zeit_amb_1": {
            "name": "zeit_amb_1",
            "class": "SFXAmbience",
            "persistentId": "bc485b1c-6c91-4820-b456-b3115ae1bba0",
            "soundTrack":"zeit_ambient_1",
            "vizColor":[
                0.956862807,
                0.0705882162,
                0.0705882162,
                0.176470593
            ]
        },
    }
    https://beamng.com/posts/1785851

    In this case you might need a bit of Lua code to apply the ambiences to the zones again on map load, unless you move the zones using the ambiences into their own .datablocks.json file (away from the usual save system) as stage 3.
     
    • Like Like x 1
  4. Mert Y.

    Mert Y.
    Expand Collapse

    Joined:
    Nov 29, 2015
    Messages:
    49
    I think there is no way to add a custom air suspension sound. I tried everything and searched the entire forum thoroughly, but I couldn't make it. Is there someone who managed to do that?
     
  5. Ryan Lanz

    Ryan Lanz
    Expand Collapse

    Joined:
    Mar 19, 2021
    Messages:
    6
    You could always write a lua to play a sound when you activate the air suspension
    --- Post updated ---
    What would the class be for a turbocharger/starter/bov and stuff? Is there a list anywhere where I can see what all the classes are?
     
  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