Well, you can do that in a multitude of ways, including:
A smooth gate
The expression gate
numpad inputs
etc.
ok so im making a helicopter and all is well be for i have to make the cyclic pod controlled. i was using adv. inputs values 1-8 and that would move the whole rotor head enough to lean forwards backwards and side to side... each side of the 1x1 square that the rotor wheel was on had its own hydraulic, on the adv inputs the opposite side had the opposite controls so they wouldn't buckle and twist... so when i go to set it up with a pod and an adv. pod controller i cant find anything that works like an adv. input box. if any one knows of anything that you can wire to a pod that acts just like an adv. input box that would be cool.
this is my first heli, but i think it looks pretty cool.^^^^
here you can see the 4 hydraulics that control the cyclic.^^^^^
here are were those hydraulics mount^^^^
i just need something to control those hydraulics smoothly within a certain limit... and at a certain speed...
what ever that item is i will also use it to control the speed of the main rotor and the tail rotor.
ill use a delta stabilizer to keep this thing from freaking out and maybe then ill be able to fly a heli that only uses fin tool for movement and thrusters for stabilization...
i am aware of the number pad output abilities i just want something i can wire to an advanced pod controller so i can use my WASD buttons to control the cyclic on the heli... so like if i were to hit W there would be a number out put that would increase as long as i held it(if i were to let go it would stop in place).... and also i would be able to set a limit on how big and how small that number could be... this way i could hook it up to the hydros and then be able to control the heli like a normal vehicle, no number pad shit and no messy wires.
For the body of that, did you ever consider using a 2-length box? It would use less parts.
i did... PHX 2x1's look like two 1x1's
no, i want it to act just like an adv. input box... go onto Gmod and go to wire then go down to I/O put... and it should be like the first one it says adv. input.... i want something that acts like that but can be wired to an adv pod so you can use WASD to control it...
That should do it. Not tested, mind you, but it should work.Code:N@adv input thingy I@A1 B1 A2 B2 Max1 Min1 Max1 Min2 Step1 Step2 O@Out1 Out2 interval(50) #that interval can be changed, to speed up or slow down clk() & Active -> Out1 = clamp( (A1 & !B1 ? Out1 + Step1 : (B1 & !A1 ? Out1 - Step1 : Out1)), Min1, Max1) Out2 = clamp( (A2 & !B2 ? Out2 + Step2 : (B2 & !A2 ? Out2 - Step2 : Out2)), Min2, Max2) ;
oh an ode to those who can write good expression codes... TY![]()
I use this one on most of my contraptions - it's really really handy and its also easy to make once you get the hang of it! I figured this idea out my self ages ago but i'm not sure if anyone has already thought of it:
2 Accumulators (call one "+" the other "-")
2 Multiply Gates (call A and B)
1 Negate Chip
1 Constant value (the number will be change in units per second)
1 Add
wire A input of Multiply A to Accumulator +
wire A input of Multiply B to Negate
wire Negate to Accumulator -
wire B input of Multiply A and Multiply B to Constant Value
wire Add A and B to Multiply A and Multiply B
If your number needs to default to something (say if to have a platform flat a hydraulic needs to be default to 114) and you want to reset the accumulators to get this number, put another add gate on the end and do the original add gate plus a number that you want to default to.
reseting the circuit is simple - use the resets on the accumulators. BUT YOU MUST RESET BOTH to get 0 value!! (or what value you want as the "0")
You can add limits with greater than and less than gates and if else then gates. For example: If value = less than 50 then the input to the negitive accumulator (to make the value less) becomes always 0 until the less than gate is saying the value is not less than 50 (outputting 0). Effectively you have a limit of no less than 50.
How it works: When you press a button connected to the negitive accumulators input it will send a positive value through the negate and make it negitive. This negitive number will be added to (taken away as you are adding a negitive number) the total value thus making it less. pressing a button connected to the positive accumulator will add that value to the existing total. so if it is -45, adding 50 will make it equal 5 as a total. The multiply gates just increase the rate of change - so (assuming you have an input of 1 into the accumulators and not 5 or 0.2 etc) instead of counting the seconds (one unit per second) you are multiplying the seconds that pass by a constant: say if it was 10 - thats 10 units of change per second because 1 x 10 = 10!! Basically, the numbers will get huge but be relevtive so it might be a million and 10 take 1 million to get a value of 10.
you can hook up anything to this. It is very useful and versitile as you can add a lot of paramaters that adv input cant have. Hope this is useful. If you want me to post a tutorial on youtube or need more information contact me at stecman@gmail.com
Bookmarks