In order to play the approaching train sound in the station addition module, I was able to detect the approach of a train using handleEvent in game_script. All that's left now is to play the sound, but does anyone know how to play a sound effect when an event is triggered with handleEvent?
I don't know how to link it with sound_set.
Or is there a different way to do this?
I tried using comp.GameUI:playSoundEffect(name) in guiHandleEvent, but I got an error and it didn't work.
Thank you in advance.