hovercraft.e2 (403B)
- @name Hovercraft
- @inputs Dist
- @outputs ZVelocity
- @persist
- @trigger
- # ----Wires----
- # E2 Dist >> Ranger: Dist
- # E2 ZVelocity >> Hoverball: A: ZVelocity
- # Numpad output >> Hoverball: B: HoverMode
- if(Dist <= 50) { #50 is about the eyes height
- ZVelocity = 1
- } elseif(Dist >= 60) { #Put a little margin to prevent glitches
- ZVelocity = -1
- } else {
- ZVelocity = 0
- }