Space Engineers

Space Engineers

Reset Turret Orientation
8 Comments
WardenWolf 8 May @ 10:35pm 
@KarlThorsten89, I have a solution for you. First, create a timer block, and set it to 2 minutes, and have it call the programmable block. Next, on your cockpit / control seat block, go to Setup Actions. For the first action, when your ship is locked, enter that timer with Stop. For the second, when your ship is no longer locked, set the timer to Start. So, two minutes after everything has lost lock on you, your turrets will reset. If you get relocked during that time period, it will stop and reset the timer.
KarlThorsten89 12 Jan @ 2:39pm 
Still works. I just wish this script would run automatically for each turret after a few seconds of not firing, and that they rotated back to default orientation slowly, instead of just snapping back instantly. And if they find a ship they can fire at, the script stops for that turret and so on and then resumes again after not firing. But would probably be a little too complex to get to work that way.
Still, good work!
Keith 13 Oct, 2024 @ 10:03pm 
10-14/2024, Script still works perfectly. Saved my arse, Thanks man!
◔◡◔ Sh1bE ◔◡◔ 19 Feb, 2024 @ 8:22am 
Life saver. I just finished my first good-looking ship and I wanted to reset the turrets before blueprinting. Thx for this alot.
Gamerforlife 2 May, 2023 @ 6:38pm 
Does this still work and if so where do I put the script and where is the run button? new to the game sorry.
GruntBlender  [author] 7 Apr, 2020 @ 3:34am 
Thanks for letting me know. Script updated, issue should now be resolved.
Whiplash141 6 Apr, 2020 @ 3:16pm 
This will disable your turret AI if you run it when you are not actively shooting at something because of the logic that occurs underneath the hood when you set turret Azimuth and Elevation.

I documented the cause here (It has actual code formatting lol): https://www.reddit.com/r/spaceengineers/comments/fvjex1/aim_gatlings_forward/fmmsnpe/?context=10000
Skallabjorn 7 Feb, 2020 @ 1:17pm 
Yayyyyy thank you! finally a script to do this :)