I've been toying around with Lua but I've gotten myself stuck.
Could someone please show me/or post a template of a Lua script for sound. What I have is multiple Events along the route and I wish to play PA announcements I have recorded myself. I've trawled through pages and pages trying to piece together pieces of info as its so scattered. I have the scenario authors guide III, I've read the trainsimlive blog end to end countless times and many threads on here and similar forums.
What's odd is I can make one announcement play by using this
Code: Select all
SysCall("ScenarioManager:PlayDialogueSound", "Welcome Aboard.wav")Could somebody shed some light onto this for me please and if possible show me a template or how to lay out my lua script in the correct format.
Thanks in advance
Steve