sumguytwitches

jetpack landing

Oct 10th, 2020 (edited)
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. brakes off.
  2. list engines in es.
  3. for e in es set e:thrustlimit to 100.
  4. for e in es e:shutdown().
  5.  
  6. function th { parameter limit. set newColor to RGB(Random(),Random(),Random()). for e in ship:partsdubbedpattern("vec") if e:position:x < 0 { highlight(e, newColor ). set e:thrustlimit to limit. }. }
  7.  
  8. for e in ship:partsdubbedpattern("vec") { set e:gimbal:limit to 5. e:activate(). }
  9. //th(90).
  10. set p to -5.
  11. lock steering to heading(90, p).
  12. set servos to ship:modulesnamed("ModuleRoboticRotationServo").
  13. function tilt { parameter tlt is 0. for s in servos s:setfield("target angle", tlt). } .
  14. set sl to 0.
  15. tilt(-45).
  16. //lock throttle to -verticalspeed + 50 -alt:radar . rcs on.
  17. when alt:Radar < 45 then {gear on. lock throttle to -verticalspeed. }
  18. when alt:Radar < 15 then lock steering to heading(90,15).
  19. when groundspeed < 8 then { set p to 0. tilt(0). lock throttle to -verticalspeed - 2.}
  20. when ship:status = "Landed" then {lock throttle to 0. brakes on. }
  21. lights on.
  22.  
  23.  
Add Comment
Please, Sign In to add comment