Advertisement
sumguytwitches

VAB cam

Sep 15th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. set locs to readjson("0:/kerbin.json").
  2. set tower to locs:vab.
  3.  
  4. set cam to addons:camera:flightcamera.
  5. set keepcam to true.
  6. set camscale to 100.
  7. lock fov to arctan(camscale/cam:position:mag).
  8. set cam:fov to fov.
  9. when true then
  10. {
  11. set cam:position to tower:altitudeposition(300).
  12. if (cam:fov*1.2 < fov or cam:fov*0.8 > fov) set cam:fov to fov.
  13. return keepcam.
  14. }
  15.  
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement