Whip's Rotor Thruster Manager (Works with pistons too!) для Space Engineers
ATTENTION: This script triggers itself automatically. No timers needed!
[img=https://i.imgur.com/86zb7Bb.png]
- Added boolean to enable detection of thrust over connectors (by popular demand)
[img=http://i.imgur.com/3yNVfai.gif]
[img=https://i.imgur.com/Vw0h1Xy.png]
This script automatically throttles thrusters on subgrids based on which way they happen to be pointing. This allows you to control subgrid thrusters with regular WASD movement keys. This code will also work with inertial dampeners!
This script does not control the rotors themselves, it simply allows you to control subgrid thrust like regular thrusters. Also, if you change the angle the of rotor thruster, the code will automatically adjust the movement keys that fire it.
As always, I will continue to improve this code :)
[img=https://i.imgur.com/A6KkMfe.png]
[olist]- Place the word “Reference” in the name of your control seat/remote/cockpit that the ship is flown from! You can set multiple seats/remotes as references, the code will pick the one you are actively using automatically.
[img=https://i.imgur.com/rxow9yJ.png]
- Put this code in a programmable block
This is how the code should look if it is running properly
[img=http://i.imgur.com/JznhksG.gif]
- Attach your rotor thrusters however you like. (I recommend that you lock them when they are not being rotated!)
- You do not need any thrusters on your main grid!
- Thrusters on grids with connectors are IGNORED by default. This is to avoid taking control of docked grid's thrusters. To change this, set detectBlocksOverConnectors to TRUE within the script!
- Thrusters on grids with connectors are IGNORED by default. This is to avoid taking control of docked grid's thrusters. To change this, set detectBlocksOverConnectors to TRUE within the script!
[img=https://i.imgur.com/cm0jTAV.png?1]
- Enjoy![/olist]
[img=https://i.imgur.com/zIxUe7k.png]
Argument
Function
on
Turns program control of subgrid thrust on
off
Turns program control of subgrid thrust off
toggle
Toggles program control of subgrid thrust off/on
dampeners_on
Turns dampeners of sub-grid thrust off
dampeners_off
Turns dampeners of sub-grid thrust off
dampeners_toggle
Toggles dampeners of sub-grid thrust off/on
[img=https://i.imgur.com/twuIaF6.png]
I designed this code to make flying with VTOL and thrust vectoring craft much easier and much more fun. I truly hope that this code brings you as much joy as it does to me!
Remember to lock your rotors or you will get torque :)
If you notice any bugs/want to make suggestions feel free to leave a comment! This code is by no means perfect; I will continue to update and fix any issues that this code has to make it the best as possible :)
- Whiplash141