# Need someone to wire up a contraption?

I fail at modeling, and the F-16 is getting old. If anyone has any decent models they want wired, post them and I’ll see what I can do (if they are released, I will give you full credit for the model).

Also if you need a relatively simple E2, I’d do it.

Is this only for existing contraptions or do you do custom E2s as well?

Because I sort of need an E2 that controls a single hydraulic door and can open and close it at different speeds while having multiple outputs for buttons and shit.

That didn’t sound so simple after I typed it.

``````

@name Hydraulic Controller
@inputs ButtonA ButtonB ButtonC ButtonD ButtonE
@outputs Length
@persist IsOpen

interval(300)
if(sign(ButtonA + ButtonB + ButtonC + ButtonD + ButtonE) == 1) {IsOpen = abs(IsOpen - 1)}
Length = [START LENGTH] - ([START LENGTH - END LENGTH] * IsOpen)

``````

Wire a smoother with desired settings to Length output.

Why is speed an input? I don’t see it used anywhere in the actual expression.

what happened here

http://www.nodex.net/forums/viewtopic.php?f=4&t=95&start=10

Oh lol’d. I’m flattered?

Woah, fur serius?
Dude could you make me one which, upon holding a button, will have a countdown of 3 seconds, then output 1 (for operating rocket engines)… and return to 0 when the button is released.

Also, with each second during the countdown, have an output of 1 lasting just .5 seconds (for operating a blinking red light and siren effect) at the 0.01, 1, and 2 second marks.

To simple it up-> beep beep beep BOOOOMholycraaap release button ok everything’s cool

``````
@inputs Omg
@outputs Hax
@persist Lolwat
interval(100)
if (Omg) {
Lolwat = min(Lolwat + 0.1, 3)
Hax = (Lolwat == 3)
} else {
Lolwat = Hax = 0
}

``````

Amirite
imrite

God, how I @#%\$ing love the modulus function for these kinds of things

@name Bomb E2
@inputs Start