ehem. OMSI - Forum
Würden Sie gerne auf diese Nachricht reagieren? Erstellen Sie einen Account in wenigen Klicks oder loggen Sie sich ein, um fortzufahren.
ehem. OMSI - Forum

Dieses Forum wurde geschlossen. Das neue Forum befindet sich auf www.omnibussimulator.de/forum !
 
StartseiteStartseite  Neueste BilderNeueste Bilder  SuchenSuchen  AnmeldenAnmelden  LoginLogin  

 

 Setting values

Nach unten 
AutorNachricht
EirikhO

EirikhO


Anzahl der Beiträge : 61
Anmeldedatum : 07.04.11
Alter : 29
Ort : Norway

Setting values Empty
BeitragThema: Setting values   Setting values Icon_minitimeMo 23 Mai - 19:07

How do I set a value to an item? I've been checking a couple of the script files but I can't make any sense of it.

What I want is one thing to happen when a certain trigger is triggered, but not again if the trigger is called later, unless a second trigger has been triggered between. I figured (from experience in other languages) the easiest way would be to set a value to 1 the first time is triggered, then setting it to 0 again when the second trigger is ran, and making my little piece of code only run when the value is 0.

Anyone got any ideas?


Side question: In the sound cfg files, there's a number on the line after the wav file location. What is this, and also can I have several origins of a sound, and is there any way to make the sound only audible from inside the bus (unless the doors are open)?
Nach oben Nach unten
 
Setting values
Nach oben 
Seite 1 von 1
 Ähnliche Themen
-
» setting up gears
» Setting up Steering Wheel
» Setting up for Xbox360 controller
» Setting the fuel amount
» [SOLVED] Problem "Setting"

Befugnisse in diesem ForumSie können in diesem Forum nicht antworten
ehem. OMSI - Forum :: OMSI-Design (english) :: Script programming-
Gehe zu: