• Expression 2 help (with hoverdrive)
    2 replies, posted
I want to program an E2 chip to simply make a hoverdrive jump ahead a set amount of distance (2000 Gmod units). I've tried to code it several times and failed miserably. Can anyone help?
That is so not specific... How can you want it to jump ahead, you could want to jump ahead in x y z, or maybe entity():forward*2000 I'm not sure.
[code] @name Hoverdrive control @inputs Chair:entity @outputs Target:vector interval(10) Target = Chair:massCenter() + Chair:driver():eye() * 2000[/code] This will make it teleport 2000 units in the direction you aim (even through cockpits, windows, etc) Wire "Chair" to an adv pod controller's entity output. Wire the hoverdrive's "JumpTarget" input to the E2. Wire the hoverdrive's "SetJumpTarget" and "Jump" to the adv pod controller (in any way you like). (Posted [url=http://www.facepunch.com/showthread.php?t=765410&page=3]here[/url] as well)
Sorry, you need to Log In to post a reply to this thread.