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
@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
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.
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?
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?