sumguytwitches

Untitled

Oct 21st, 2020 (edited)
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set sgp to 0.
  2. set sggo to true.
  3. set sgf to 8.
  4. set sgpr to 4.
  5. function sgd {
  6. parameter l. parameter d.
  7. If l:length > sgpr set sgpr to l:length.
  8. print (l:padleft(sgpr) + ": " +round(d,2)):padright(terminal:width) at (0, sgp).
  9. set sgp to sgp + 1.
  10. }.
  11.  
  12. lock relvel to ship:velocity:orbit - target:velocity:orbit.
  13.  
  14.  
  15.  
  16. On round(kuniverse:realtime * sgf) {
  17. set sgp to 0.
  18.  
  19. sgd("Distance",target:distance).
  20. sgd("Rel Vel", relvel:mag).
  21.  
  22.  
  23. Print "":padright(terminal:width) at (0,sgp).
  24. Set sgp to sgp + 1.
  25. Print "":padright(terminal:width) at (0,sgp).
  26. return sggo.
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment