Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set x to 90.
- set p to 0.
- set a to 2.
- set talt to 300.
- lock steering to heading(x,p).
- lock deploy to max(3,airspeed^0.7).
- lock tilt to max(75,min(90,alt:radar*90/talt)).
- set blades to ship:partsdubbedpattern("blade").
- Set servos to ship:partsdubbedpattern("servo").
- for rotor in ship:partsdubbedpattern("rotor") rotor:getmodulebyindex(1):setfield("torque limit(%)",100).
- set adjust to true.
- when true then {
- For b in blades b:getmodule("ModuleControlSurface"):setfield("deploy angle",deploy).
- For s in servos s:getmodule("ModuleRoboticRotationServo"):setfield("target angle",tilt).
- return adjust.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement