Space Engineers

Space Engineers

[Archive] Rdav's EZ- Turret AI
380 Comments
Ian. 16 Jun, 2020 @ 6:05am 
because the turrets just sin out of control until they explode
Ian. 16 Jun, 2020 @ 6:05am 
Please make this script compatibel with OK turrets
Paul Drive 15 Aug, 2019 @ 11:52am 
If your waiting for this script to be fixed check out his brand new one its better and definately watch the video that goes with it its Cool! - Rdavs Easy Auto Turret Script
Nahfahlaar 25 Jul, 2019 @ 2:28pm 
The mod dosent work? i need it :D
xxkillerlordxx 10 Jul, 2019 @ 10:42am 
i douwenloaded ure mod BUT cant finde it in the MODlist
le doc 22 Jun, 2019 @ 8:30am 
hey i would like to ask how to make the turret come back to the initial position , i have seen the instruction in the description and once i make the rotors limits the turret is not working ( because to the limits ) so how to fix it
Snaking Gamer 18 Jun, 2019 @ 12:14pm 
What rotor mod is used for the other turrets?
Ruin Incarnate 7 Jun, 2019 @ 9:45pm 
I am attempting to create an ion cannon based laser turret using this AI. I am trying to get it to aim without leading the target, but since it automatically leads the target it fires into open space when the target is moving. Is there a way to disable target leading?
Saphir 21 May, 2019 @ 5:15am 
excuse me.. I encountered a problem like, the turret only targets enemies at a super close range. like about 50m. Is there a way to fix it?
Straws 19 May, 2019 @ 2:51am 
Is there a way to slow down how fast each tick is? its flipping on/off on the shooting so quick that the turret isn't registering to fire.

Mod: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=875836951&searchtext=laser+weapons+star+wars
Sided Ace 18 May, 2019 @ 10:49am 
I figured out my problem with the turret and I feel really dumb... I forgot gyros and turning the rotors off -_-
jblrag 2 16 May, 2019 @ 6:09pm 
I found a problem where if the rotor limits arn't mirrored, the turret won't come to rest in the center of the limited range but instead rest at maximum AZ and EL and won't track the designating turret.
For example, if the AZ or EL limits are 90, -50, the turret stays pinned at AZ or EL 90. but if the limits are 90, -90, the turret AZ or EL will rest at 0 and will track a target.
Sided Ace 12 May, 2019 @ 10:30am 
Idk, it’s still not workin
Sided Ace 2 May, 2019 @ 11:39am 
Is my turret construction just fundamentally flawed?
Sided Ace 2 May, 2019 @ 10:29am 
Based upon my knowledge they are all just fine, I have rotor breaks set, I have limits on my rotors where necessary, the module is centered upon the rotating base of the turret (the layer that turns, not the part that directly connects as part of the ship) and I checked the code and it shows no errors.. I own all the blocks, and my designator turret is tracking just fine :/ maybe I built the turret wrong? Idk.. it’s a platform with a rotor on the bottom that rotates 2 arms that has the weapon on its up/down axis.
Rdav  [author] 2 May, 2019 @ 7:44am 
few things to check:
- ownership of everything
- rotor limits set correctly
- if the designating turret is tracking
- no error messages in the code
- correct positioning of the module
Sided Ace 2 May, 2019 @ 3:31am 
Yes, everything is fine from what I read it just isn’t tracking
Brodym12 1 May, 2019 @ 6:00pm 
Have you set it so you own it? had this problem awhile ago and that fixed it
Sided Ace 1 May, 2019 @ 2:58pm 
can anyone give me a hand please?
Sided Ace 1 May, 2019 @ 2:58pm 
I'm not quite sure why I cannot get it to work, as far as my knowledge goes everything is set up right
Sided Ace 30 Apr, 2019 @ 6:34pm 
Continuing my last question I found the proper place to put the code but it won’t work
Sided Ace 30 Apr, 2019 @ 6:31pm 
I need some help please, I made a turret mounting a laser, it is built using a base, which has a rotor on top, then another platform where I put 2 arms which connect using rotors to the firing piece, and I tried installing the module on separate areas of the turret and it won’t work, I’ve made sure I own all blocks in the turret and it says it was running yet it was not tracking or firing the gun
Saphir 26 Apr, 2019 @ 7:03pm 
The Script works but... It does not seem the automatic equilibrium works. It just stays in its current position
Shiro Skydragon 26 Apr, 2019 @ 7:57am 
Is this confirmed to still work in survival? I can't copy or paste blueprints in survival and the script isn't showing up in a program block.
Black_Darte 24 Apr, 2019 @ 7:33am 
@RedLordSeth
The script is working perfectly fine at this date the error we can see are not blocking the script to work fine you can ignore them and ave fun.

RedLordSeth 8 Apr, 2019 @ 11:20am 
Ther is one problem in the new versions of Space Engineers with your skript: it doesen´t work and I think the problem is when you check the code, you will see that some lines are obsolete. I think here is the mistake. Please correct it.
plofski 26 Mar, 2019 @ 7:18am 
hey, can you make a script that uses a turret to guide a missile?
Hage Maoh 21 Mar, 2019 @ 9:56pm 
Large grid is working perfectly, but small grid has 2 problems:
1) It can't seem to control more than 1 arm once no matter how the PBs, Cockpit, or turrets are positioned.
2) When set up properly with just 1 turret arm, it will only fire 1 weapon on that arm. The rest will make a clicking sound and not fire (removing the PB causes them to all start firing)
Cap'n MacHaddish 17 Mar, 2019 @ 10:44am 
Okay, I checked, and no, it does NOT work if the azimuth rotor is upside down. Is this fixable?
Cap'n MacHaddish 17 Mar, 2019 @ 10:38am 
Does this script work if the azimuth rotor is upside down?
Cap'n MacHaddish 17 Mar, 2019 @ 10:23am 
Script says I'm missing an azimuth rotor. What does that mean? Is that the pitch rotor or the yaw rotor?
c.bundy99 16 Mar, 2019 @ 7:20pm 
I have the turret setup like in the gif above but the it won't target anything. Control block says its not picking up any weapons or rotors.
Atro 8 Mar, 2019 @ 5:02am 
this is odd, i made a planet defense cannon but its not working, its saying no primary weapon found when i have 9 rocket launchers perfectly attached. Am i doing something wrong?
Rdav  [author] 24 Feb, 2019 @ 5:09am 
That is a warning only,
the core script still works
Dan3579 23 Feb, 2019 @ 5:40pm 
This script no longer works. The game says several commands are "obsolete"
Randerewsydo 9 Feb, 2019 @ 7:30pm 
every gun shoots facing away from the target
Tobymaxgames 8 Feb, 2019 @ 12:50pm 
are you able to add support for that hinge mod? this one: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=385778606
Atro 3 Feb, 2019 @ 2:23pm 
i have 2 arms, each with 2 rocket launchers. Do i need 4 of this or only 2. I have 2 and only one rocket launcher from each arm is firing
Atro 1 Feb, 2019 @ 2:22pm 
only one of my rocket launchers is firing
ViccyQ 19 Jan, 2019 @ 12:06pm 
Is this still working? Does nothing for me.
Paul Drive 6 Jan, 2019 @ 6:21pm 
The turrets move the gun barrels on activation of the designator turret for a second then lock up and freeze in place.
Mindlessmrawesome 15 Dec, 2018 @ 5:42pm 
hmmm for some reason several items from the workshop have their "copy to clipboard" button greyed out... including this one. Maybe someone could shed a light onto why this is?
Wai 1 Dec, 2018 @ 2:50am 
Is this script still working? I made everything like on instruction and it just doesn't work
The True Fetus 21 Nov, 2018 @ 1:17am 
So does this not work with Gatling guns still? Or is there a way to make it work that I don't know of?
Cyber Rage 18 Nov, 2018 @ 1:47pm 
rdav,looking to get this working with railgun mods, as theyre the pnly weapon any rotor turret ive built uses. can you help?
Rdav  [author] 15 Nov, 2018 @ 1:54pm 
they *should* go back to halfway between their min and max
ItsaYeti52 15 Nov, 2018 @ 1:28pm 
Awesome Script. Everything works great for me except just one thing. My barrels go to their max elevation when they return to their original orientation. Is this a normal bug? Or is there a way to set the auto orentiation? Idealy I would like them to return to the bottom of my rotor settings to 0.
Shark Tits 10 Nov, 2018 @ 6:45pm 
Looking forward to updates of all Rdav's wonderful scripts, fell in love with custom rotor turrets thanks to him and Whiplash141, you guys make playing SE way more fun, thanks for all the hard work Rdav.