Solved Playing a sound when area is entered?

Discussion in 'Mod Support' started by Experimental Pilot :-), Oct 19, 2023.

  1. Experimental Pilot :-)

    Experimental Pilot :-)
    Expand Collapse

    Joined:
    Sep 15, 2021
    Messages:
    18
    How do I use ingame (f11) editor and make it so a sound file plays when a set area is entered
     
  2. Ernxdr89

    Ernxdr89
    Expand Collapse

    Joined:
    Jul 29, 2023
    Messages:
    55
    In the editor, click on create object then sfx emitter
    upload_2023-11-25_21-52-11.png
    place it where you want, resize it to the size you want (it can only be squared for some reason)
    select it from the scene tree
    upload_2023-11-25_21-56-24.png
    filename is the song you want to play, it needs to be in beamng data folder (in the mod folder for exemple)
    if you want the sound to be evenly loud in the whole area, referenceDistance needs to be equal to maxDistance or the song will fade out as you get further away from the sfx emitter (unless that's what you want)
    Hope this helps
     

    Attached Files:

    • upload_2023-11-25_21-50-24.png
    • upload_2023-11-25_21-51-18.png
    • Like Like x 2
  3. Experimental Pilot :-)

    Experimental Pilot :-)
    Expand Collapse

    Joined:
    Sep 15, 2021
    Messages:
    18
  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