Advertisement
sumguytwitches

scoring

Apr 26th, 2023 (edited)
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. clearscreen.
  2. for i in range(terminal:height) print "".
  3. set tgt to readjson("0:/json/kerbin.json")["Island Tower"].
  4. when true then {
  5. set score to round(missiontime,1):tostring():padright(6) + round(tgt:distance,1):tostring():padright(8) + round(airspeed, 1):tostring().
  6. print score at (0,0).
  7. set ship:name to score.
  8. return ship:status = "Flying" or tgt:distance > 1000.
  9. }
  10.  
  11. set cam to addons:camera:flightcamera.
  12. set camflag to true.
  13. lock cx to 0.
  14. set cy to -05.
  15. Set cz to 0.
  16. Set cd to cam:distance.
  17. on time:seconds { set cam:position to (-tgt:position:normalized*cd)*r(cx,cy,cz). return camflag and tgt:distance > 50.}
  18.  
  19. Print "Good Luck!".
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement