logo

scripts

A bunch of scripts, some to be moved to their own repository git clone https://anongit.hacktivis.me/git/scripts.git/

hovercraft.e2 (403B)


  1. @name Hovercraft
  2. @inputs Dist
  3. @outputs ZVelocity
  4. @persist
  5. @trigger
  6. # ----Wires----
  7. # E2 Dist >> Ranger: Dist
  8. # E2 ZVelocity >> Hoverball: A: ZVelocity
  9. # Numpad output >> Hoverball: B: HoverMode
  10. if(Dist <= 50) { #50 is about the eyes height
  11. ZVelocity = 1
  12. } elseif(Dist >= 60) { #Put a little margin to prevent glitches
  13. ZVelocity = -1
  14. } else {
  15. ZVelocity = 0
  16. }