Working LUA Map trigger for play custom sound

Published on ● Video Link: https://www.youtube.com/watch?v=z6QiptMPI7Y



Duration: 0:00
52 views
4


Engine.Audio.playOnce('AudioGui', 'levels/west_coast_usa/art/sounds/Bad_Taco.ogg')

You may not have too, but I render the audio using OGG format and use the Vorbis compression when rendering audio in Blender.

Also, this does make a LUA error appear the first time it plays. No idea why.
But the sound played.


If anyone curious Bad Taco was a fart sound that played when next to any outhouses on a map.