Horn lever in panel2 cab

Go down

solved Horn lever in panel2 cab

Post by graymac on Sat May 19, 2018 11:40 am

Don't know if this is plug-in related. I'm using  [DigitalNumber] to provide a horn lever in the cab of the 201 class(s) - same principle as the other control levers.  All trains have BVEC plug in fitted.
Using  " Subject = ats24 " in the panel2.cfg I notice that nothing happens visually when the hooter is operated. I'm sure it used to work when I first made the locos, which originally had an older UK plug in of some sort.  The horn levers on the 22000 & 29000 have the same arrangement and are also non-functional.
Any suggestions?


Last edited by Northern Line on Wed May 23, 2018 5:10 am; edited 1 time in total (Reason for editing : solved :))
avatar
graymac

Posts : 1903
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

solved Re: Horn lever in panel2 cab

Post by leezer3 on Sat May 19, 2018 12:12 pm

Adding the following to the [Interlocks] section should do it I think:
Code:

klaxonindicator=24,500,24,500,24,500

This should show ATS24 for 500ms whenever one of the three horn keys is pressed.

Edit:
Actually the main sim also already does this too, as of 1.5.1.0 Razz
Klaxon    Returns the currently playing horn (if any) as follows: (0) No horns are playing (1) The primary horn is playing (2) The secondary horn is playing (3) The music horn is playing. Note If multiple horns are playing, the lowest value will be returned.
PrimaryKlaxon    Returns 1 if the primary horn is currently playing, 0 otherwise.
SecondaryKlaxon    Returns 1 if the secondary horn is currently playing, 0 otherwise.
MusicKlaxon    Returns 1 if the music horn is currently playing, 0 otherwise.


Using PrimaryKlaxon instead of ATS24 should give you what you want.

leezer3

Posts : 1129
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

solved Re: Horn lever in panel2 cab

Post by graymac on Sat May 19, 2018 6:42 pm

You're right, it works! lol!
thanks!
avatar
graymac

Posts : 1903
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

solved Re: Horn lever in panel2 cab

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum