Hi Adam, This is a really great video and one I have been after for a while. However, for some unknown reason, I still cannot get the trains in my scenarios to sound their horns even though I have followed this video to the letter!
Make sure in your SysCall() for the horn's control value, make sure you're using the leading vehicle's number. And make sure the name of the trigger and the string in your if() statement are exactly the same (i.e. they're case sensitive). Make sure to also save and recompile your Lua code too.
@@adamhaigh9947 I always copy the lead vehicle and the trigger name into the lua file and I've always saved the lua, then reloaded it and compiled it in TS. I've managed to get it working on one route but then it doesn't always work on other routes, even though I used the same template. Is there a limit to the amount of trains you can add horns to in one scenario?
Adam, you are 'The Lord of the Rails'
I've been wanting a video like this for ages!
This is pretty cool, thanks for sharing!
Also, Control List Dialog will work in fullscreen if you have multiple monitors
Helped alot
Great tutorial! Can I have the Lua file already compiled? Thank you very much!
Hi Adam, This is a really great video and one I have been after for a while. However, for some unknown reason, I still cannot get the trains in my scenarios to sound their horns even though I have followed this video to the letter!
which train are you using?
@@adamhaigh9947 I've tried several, the HST, the 411, 456 and even tried the 156
Make sure in your SysCall() for the horn's control value, make sure you're using the leading vehicle's number.
And make sure the name of the trigger and the string in your if() statement are exactly the same (i.e. they're case sensitive).
Make sure to also save and recompile your Lua code too.
@@adamhaigh9947 I always copy the lead vehicle and the trigger name into the lua file and I've always saved the lua, then reloaded it and compiled it in TS.
I've managed to get it working on one route but then it doesn't always work on other routes, even though I used the same template. Is there a limit to the amount of trains you can add horns to in one scenario?
I've only ever triggered horns on one AI train per scenario; not sure about any limits.
Not working for me! Can i have the lua file please?
The source code is in the video. Did you save and recompile?
@@adamhaigh9947 I solved now! My code is different in my lua. Thks for idea!