Help making sounds in scenario using Lua

Are you stuck making RailWorks work? Don't be afraid to ask your questions here, we were all beginners once!

Moderator: Moderators

Locked
stevay07
Getting the hang of things now
Posts: 54
Joined: Fri Apr 09, 2010 4:56 pm

Help making sounds in scenario using Lua

Post by stevay07 »

Hi Folks

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")
Welcome aboard being a title for one of my sound clips. When I try to add more they either overlap or nothing plays at all. I'm getting so frustrated.

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
Locked

Return to “[TS] Help for Beginners”