Ticket Stamper trigger

Willkommen in der OMSI-WebDisk!
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: = Englisch [EN], = Deutsch [DE], = Französisch [FR]. Wenn du die angegebene Sprache nicht beherrschst, schreibe auf Englisch!
  • 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?

  • 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:



    So you can set your sound with "Sound_Type" 1 or 2 with a "setvar" in the cti-file of your repaint.

  • Do you have changed the number under „conditionSingle“ too?


    Sound_Type

    2

    1


    … that means, have „sound_typeexactly (1) the number 2 (2), play this.