Space Engineers

Space Engineers

1,803 ratings
Whip's Subgrid Thruster Manager
9
7
5
4
4
4
2
39
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.014 MB
Sep 3, 2016 @ 1:47am
Jul 16, 2023 @ 8:12am
38 Change Notes ( view )

Subscribe to download
Whip's Subgrid Thruster Manager

In 1 collection by Whiplash141
Whip's Scripts
22 items
Description
Formerly Named "Whip's Rotor Thruster Manager"


  Update
  • Added custom data configuration. You no longer need to open the code and change variables!
  • Added cute little animated running screens :D




  Description
Howdy!

This script allows you to control thrusters over subgrids. This code will also work with inertial dampeners!

This script does not control subgrids themselves, it simply allows you to control subgrid thrust like regular thrusters. Also, if you change the angle the of subgrid thruster, the code will automatically adjust the movement keys that fire it.

As always, I will continue to improve this code :)


  Setup Instructions
  1. Place a seat or remote on the main grid.
    • NEW - If you want only specific ship controllers to be considered, add the name tag "Reference" to the name of the block.
  2. Put this code in a programmable block.
  3. Attach thrusters to your subgrids. If you are using rotors or hinges, I suggest you lock them because there are some strange physics bugs associated with thrust on rotors.
    • You do not need any thrusters on your main grid! However, if you wish to enable/disable dampeners, you'd need to use the dampener toggle arguments.
    • Thrusters on grids with connectors are IGNORED by default. This is to avoid taking control of docked grid's thrusters. To change this, configure the corresponding key inside the custom data.

  4. Enjoy!


  Ship Controller Prioritization
The script will automagically detect what seat you are controlling on your ship and begin controlling subgrid thrust. If you have name tagged ship controllers, only those ship controllers will be considered for prioritization. If you have multiple ship controllers on your ship, it will select them based on the following priority.
  1. Main seat/remote
  2. The first seat that was controlled


  Arguments
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


  Author's Notes
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 subgrids 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 :)

This should also go without saying, but do not reupload without explicit permission from me, not even to mod.io.

- Whiplash141
Popular Discussions View All (20)
276
May 7, 2025 @ 10:54pm
PINNED: Bug Reports
Whiplash141
33
Mar 6, 2025 @ 9:33am
PINNED: User Creations
Whiplash141
1
Dec 12, 2023 @ 10:24am
Compatibility with other scripts and autopilots
¤Foxtrot¤
1,531 Comments
Jul 5 @ 9:02pm 
Gotcha, thanks!
Whiplash141  [author]
Jul 5 @ 4:45pm 
Little more than half: (around cos(45 deg)), but pretty much, yep :)

Also, typo correction on my last (phone written) comment:
"It uses for dot products to scale how much thrust you get"
Jul 5 @ 7:44am 
So at 45 degrees you'd pretty much get half thrust for either key-press, full power if you hit both, basically?
Whiplash141  [author]
Jul 3 @ 5:01pm 
It uses for products to scale how much thrust you get based on the desired direction of movement and each theuster. When the thrust angle difference is 90 deg or more, you get zero thrust. Otherwise you get thrust that scales up to max thrust the smaller that thrust angle is. There is a config based threshold at which you get full thrust below that angle
Jul 3 @ 9:10am 
So, the description says the script can tell what angle the thrusters are relative to the ship to know what movement key should fire them, but like how does it handle say 45 degree angles? Like if the thruster is right smack dab in the middle between up and forward, does it fire from both W and Space, or does it prioritize one or the other?
Whiplash141  [author]
May 18 @ 6:29pm 
For clarity, this script does not control rotors or hinges at all
May 18 @ 9:46am 
I would apprecaite some help/guidance from you, Whiplash141, or the community. I have a build that places the large hydrogen thrusters on two consecutive hinges to swivel down for VTOL. I have tried to see if "toggle" works but the thrusters are unresponsive in both down and level possition. i am not sure if the two hinges fails the script to work, your help will be appreciated.
Mar 18 @ 7:24am 
I cant get this script to run and have no idea whats the problem. I testet it on my server and offline. I have a ship with 2 large thruster assemblies both on their own rotor so they can spin. I have a cobtrol seat and a programmable block. I opened the script.cs, copied the whole text and opened the programmable block, pressed "custom data", pasted everything in there and pressed ok. then i went ibto the control seat and pressed g. I put the programmable block on 5 and set the command to "run", in the popup window that sais argument i wrote "on" and confirmed. i pressed 5 and it does not work. what am i doing wrong?
Whiplash141  [author]
Jan 13 @ 8:06pm 
It only controls the thrusters themselves
Jan 11 @ 2:03pm 
Does this script allow for thrust vectoring with rotors, or does it only control the thrusters themselves?