Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set target to "don't land here".
- lock relvel to ship:velocity:surface - target:velocity:surface.
- lock tarSpeed tomin(200, target:distance / 40).
- set taralt to 1000.
- lock tarVel to (target:position+up:vector*taralt):normalized * tarSpeed.
- lock steering to choose up:vector if alt:Radar < taralt else tarVel - relvel.
- lock throttle to choose (steering:mag / (ship:availablethrust/ship:mass))/2 if steering:mag > 0.01 and vang(steering,ship:facing:vector) < 2.5 and ship:availablethrust > 0 else choose taralt-alt:radar if alt:radar < taralt else 0.
- on ship:maxthrustat(0) {stage. return stage:number > 0.}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement