I would like to have the ticket punching sound replaceable by [setvar] with a validator "beep". In this respect, I searched for the trigger (ev_Stamper) in order to include it in a simple case structure, but, to my surprise, I couldn't find it anywhere. Can someone explain this reason to me? Does Omsi have specific triggers which are called from any other files than .osc?

Ticket Stamper trigger
- PaulIP
- Unerledigt
Als Gast kannst du nur Inhalte in deiner ausgewählten Sprache sehen. Registrierte Nutzer können die Sichtbarkeit anderer Sprachen in ihrem Kontrollzentrum aktivieren, weitere Infos hier.
Alle Themen sind in den Foren mit einer Sprachflagge gekennzeichnet:
-
-
-
Hi Paul.
The trigger ev_Stamper is a internal-trigger. It will play the sound automatically, when a passenger validate his ticket. This process is not definited in any script.
To solve your problem, you can try this one:
Code: sound.cfg
Alles anzeigen[sound] my_sound_file_type_A.wav 1 [3d] -0.357 3.552 1.760 1.0 [conditionSingle] Sound_Type 1 1 [trigger] ev_Stamper ======================================================= [sound] my_sound_file_type_B.wav 1 [3d] -0.357 3.552 1.760 1.0 [conditionSingle] Sound_Type 2 1 [trigger] ev_Stamper
So you can set your sound with "Sound_Type" 1 or 2 with a "setvar" in the cti-file of your repaint.
-
Thank you very much!
I suppose there is no problem if I set my sound with "Sound_Type" 0 (default) or 1 (changed) instead of "1 or 2". Am I right?
-
Yes that is no problem
-
I applied this and for some reason both sounds play at the same time. Am I missing something?
-
Do you have changed the number under „conditionSingle“ too?
Sound_Type
2
1
… that means, have „sound_type“ exactly (1) the number 2 (2), play this.
-
Yes, I did just that.