Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set sgp to 0.
- set sggo to true.
- set sgf to 8.
- set sgpr to 4.
- function sgd {
- parameter l. parameter d.
- If l:length > sgpr set sgpr to l:length.
- print (l:padleft(sgpr) + ": " +round(d,2)):padright(terminal:width) at (0, sgp).
- set sgp to sgp + 1.
- }.
- lock relvel to ship:velocity:orbit - target:velocity:orbit.
- On round(kuniverse:realtime * sgf) {
- set sgp to 0.
- sgd("Distance",target:distance).
- sgd("Rel Vel", relvel:mag).
- Print "":padright(terminal:width) at (0,sgp).
- Set sgp to sgp + 1.
- Print "":padright(terminal:width) at (0,sgp).
- return sggo.
- }
Advertisement
Add Comment
Please, Sign In to add comment