Wiring Hydraulics to Advanced Pod Controller?

I’m just getting back into gmod, and I forget how to do a bunch of things with wire. I need to wire a hydraulic to an advanced pod controller. I know it needs an on value and off value, and I think that might involve a constant value, but I forget. Can anyone help me out?

Spawn Adv. Pod Controller, spawn hydraulic, spawn a multiply gate and a constant value with the opening length.
Then, wire the Multiply gate “A” to anything you want on the Adv. Pod Controller, for an instance, “Active” (Turns 1 if you use the seat / pod / vehicle). Then, wire the hydraulic “Length” to the multiply gate and wire the Multiply’s “B” to the constant value.
Should work.
Otherwise use E2:


@name Hydraulic with pod
@inputs Pod
@outputs Length
if(Pod) {Length = <enter length when pressing>}
else{Length = <enter length when not pressing>}

This way, if you like, wire Pod to “Mouse1”, you will set the length to the first thing. If you stop pressing it, you’ll set it to the 2nd. Remove the < > too, so don’t make it show up as “<20>”, but as “20”.

And if you want it to be toggled:


@name Hydraulic with pod
@inputs Pod
@outputs Length
if(Pod) {Toggle = !Toggle}

if(Toggle == 1) {Length = <enter length for 1>}
if(Toggle == 0) {Length = <enter length for 0>}

Not tested, just try.

It worked, thanks! But now I have another question. How can I make an E2 with 2 inputs (W and S on the pod controller) and two different outputs? Here’s what I tried based off of yours:

@name Hydraulic with pod
@inputs Pod1 Pod2
@outputs Length
if(Pod1) {Length = 62}
if(Pod2) {Length = 42}
else{Length = 52}

I don’t know how to make it in the code font like you did, but you get the point. The Pod2 value worked, but not the Pod1. Am I close?

@name Hydraulic with pod
@inputs Pod1 Pod2
@outputs Length
if(Pod1) {Length = 62}
elseif(Pod2) {Length = 42}
else{Length = 52}

It worked, thanks!

Ok I have another question. How Can I make this:

@name Hydraulic with pod
@inputs Pod
@outputs Length
if(Pod) {Length = <enter length when pressing>}
else{Length = <enter length when not pressing>}

Toggled? I know cyberuben already posted about that, but his didn’t work.

@name Hydraulic with pod
@inputs Pod
@outputs Length
@persist Toggle
@trigger Pod
if( first() | duped() ) { Toggle = 0 }
if( Pod ) { Toggle = !Toggle }
if( Toggle ) { Length = 50 } else { Length = 100 }

Haven’t tried it, but I guess it could work.