Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Switch to 0.
- set places to readjson("kerbin.json").
- set placeindex to 0.
- Set waypointradius to 50.
- set justkeepswimming to true.
- Set tgt to places[places:keys[placeindex]].
- lock hdg to tgt:heading.
- Set sl to 10. set height to 10.
- when true then { if vxcl(up:vector, tgt:position - ship:position):mag < waypointradius
- {
- set placeindex to mod(placeindex + 1, places:keys:length).
- set tgt to places[places:keys[placeindex]].
- lock hdg to tgt:heading. //set sl to max(min(tgt:distance / 15, 100),5).
- Print "Going to " + places:keys[placeindex].
- HUDTEXT("Going to " + places:keys[placeindex], 15, 2, 35 , RGB(Random(),Random(),Random()), false).
- }
- return justkeepswimming.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement