Space Engineers

Space Engineers

49 ratings
Copter time [VTOL]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.622 KB
15 Feb, 2018 @ 3:01am
16 Feb, 2018 @ 6:43am
3 Change Notes ( view )

Subscribe to download
Copter time [VTOL]

In 1 collection by conKORD
Clang Dynamics
4 items
Description
Script features:
1) Auto-hover:
-Set vertical velocity to 0
-Control pitch and roll to decrease horizontal velocity and hover in place.
2) Limit pitch and roll to prevent turn over.
3) Limit pitch and roll assuming thrust/weight ratio. So on max allowed pitch or roll vehicle will have enough thrust to keep altitude.
4) On press movement key (WASD) vehicle lean towards this direction and start move
5) Control thrust to keep altitude. When pitch or roll are not 0 - script increase thrust assuming this angle to keep altitude.
6) When script feel that vertical velocity is too high - it will commit suicide burn to prevent crash.




Commands:
1) toggleMoveForward -if you put something heavy on your "W" key - you'll get same result
2) togglePreciseMode - limit max pitch and roll. Vehicle will accelerate an deccelerate slower.
3) toggleGyroControl - shut down gyro override. WASD won't work anymore, but you'll be able to control your copter with mouse or joystick. Thruster control will continue working. Use it if you want to shoot someone.

4) toggleHoverMode - by default is ON. Vehicle will keep elevation over terrain.

Usage:
1) Paste this script into programmable block
2) Get in your cockpit or remote control
...
Don't forget to land before exiting cockpit. Script will shut down if noone piloting ship.


PS this script work even with vehicles unstable by design


PPS demo vehicle:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1301292314
14 Comments
SourceStick 30 Aug, 2019 @ 11:52am 
there is some errors that the code checker found. Also I have a weird problem that makes my copter start falling down suddenly whit this script. Does it support modded thrusters?
woostyboy 20 May, 2019 @ 8:49am 
Not going to be in game for a while so can't test this out...

I understand this does not work with sub-grids, but if your script and Whip's Rotor Thrust Manager script -

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=757123653

...were run together, would sub-grids work? Or would the two scripts not behave well together?

Thanks in advance,
Woostyboy :)
conKORD  [author] 18 Apr, 2019 @ 2:18pm 
No, thrusters should be in same grid with cockpit
Georgius 18 Apr, 2019 @ 11:56am 
Does it work with subgrid thrusters?
space king 15 Mar, 2019 @ 8:24am 
if you ever do any updates to this, a gentle landing when you exit would be great
McTec Ind. 5 Mar, 2019 @ 11:16am 
Okay at first I just thought it sounded super... but now after trying it myself I must say you are a genius. This is simply amazing.
McTec Ind. 5 Mar, 2019 @ 10:38am 
This is indeed a useful and impressive script. It definately should have far more upvotes... here have a upvote.^^
☭Android☭ 10 Jun, 2018 @ 9:59am 
good job,comrade
STRIKER 6 May, 2018 @ 11:37pm 
i almost freaked out when I read "it will commit suicide burn", i legit thought the script would kill the aircraft, but turns out im just tired and i had forgottent what a suicide burn is