How does one appropriately use wirelinks?
And for that matter, highspeed support with exp2.
A connection between exp2 and a cpu system would yield very great things....
How does one appropriately use wirelinks?
And for that matter, highspeed support with exp2.
A connection between exp2 and a cpu system would yield very great things....
Give me rep if I helped you
CAPS LOCK IS CRUISE CONTROL FOR AWESOME
How The Clocks at Valve Work
Gpu Problem? Refer to This!
CLICK HERE TO MAKE A HELP THREAD
GENERATION 7: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
Social experiment.
Give me rep if I helped you
CAPS LOCK IS CRUISE CONTROL FOR AWESOME
How The Clocks at Valve Work
Gpu Problem? Refer to This!
CLICK HERE TO MAKE A HELP THREAD
GENERATION 7: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
Social experiment.
Basically, you find your component, for argument's sake let's say a vector thruster. You spawn it, place it, do whatever you need, then you take out the Wirelink tool and use leftclick on the thruster. It now has an output of [WIRELINK] type. Now you write an expression.
This expression now has an input of [WIRELINK] type. Take your wiring tool of choice, and wire the expression's input to the thruster's output. The thruster should now try to move itself to the directed position. You can also retrieve ([NORMAL] type) outputs with XWL:number(), but vector thrusters don't have outputs. Switching to a hydraulic you can for instance use Hydraulic:number("Length") and it will get the output Length.Code:@inputs Thruster:wirelink Targetpos:vector @persist L Curpos=Thruster:entity():pos() Dir=Targetpos-Curpos Thruster:setNumber("X",Dir:x()) Thruster:setNumber("Y",Dir:y()) Thruster:setNumber("Z",Dir:z()) L=Dir:length() Thruster:setNumber("Mul",L+5*$L) interval(20)
Haven't tested the hi-speed functions, though.
PS:Some more examples starting here.
Last edited by Magos Mechanicus; 11-23-2008 at 03:08 AM.
I can wire anything directly into anything! I'm the Professor!
-Professor Hubert Farnsworth
Thanks Magos.
Give me rep if I helped you
CAPS LOCK IS CRUISE CONTROL FOR AWESOME
How The Clocks at Valve Work
Gpu Problem? Refer to This!
CLICK HERE TO MAKE A HELP THREAD
GENERATION 7: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
Social experiment.
Bookmarks