I want to make a series of variables that are changable by numpads. Meaning, if I push 4, the variable set for 4 something increments, and when I push 6, the variable decrements.
Also, how do I keep the variable increasing/decreasing permanently? I can get a value to change just by pushing a button, but how do I make it store the new value?
I believe the Advanced Input allows you to insert increment/decrement values.
Also, just for convenience' sake, how does the E2 timer syntax work?
The timer syntax I use is timer("name", time) and if(clk("name")) {action}.
For example, say you want a timer to trigger after another event happens. My favorite example is a timed door that uses a timer to tell it when to close:
Code:
@name Door
@inputs Spacebar
@outputs Hydraulic
@persist
@trigger
if (Spacebar) {
Hydraulic=100
timer("door", 2000) #This is where the timer begins, as soon as the hydraulic triggers.
}
if(clk("door") { #This line is the same as saying "Once it has reached the set time..."
Hydraulic=0
}
Note that the time you put in (e.g. 2000) is seconds multiplied by 1000. A time of 2000 is 2 seconds, a time of 1000 is one second, a time of 500 is half a second, etc.
__________________________________________________ __________________________
As for my ejection seat, it appears that seat positioning and some rewiring are all I needed to fix. I have a working ejection seat now, only problem being that I need a plane to eject out of...