Space Engineers

Space Engineers

Rdavs Easy Auto Turret Script
311 kommentarer
BooseOG 16. okt. 2024 kl. 15:03 
Also how does it reload?
BooseOG 15. okt. 2024 kl. 17:06 
Does this control AI turrets aswell?
Cthulhu 16. juni 2023 kl. 5:41 
Rdav's are the best scripts from the beginning, thank you Rdav
ViccyQ 11. feb. 2023 kl. 5:59 
@Rdav

Thank you for the update!
Rdav  [ophavsmand] 11. feb. 2023 kl. 4:37 
it will prevent it working
ViccyQ 9. feb. 2023 kl. 21:39 
Anyone know if Weapon Core prevents this from working?
唔姆唔姆怪 17. apr. 2022 kl. 20:43 
I don't know why it was used normally before. The script seems to be normal. The missile tower as the aiming reference attacks normally, but the rocket on the rotor won't launch and the rotor doesn't rotate. I don't know what the problem is
TurtleHunter2 24. mar. 2022 kl. 18:24 
Salutes to you, made a plugin so good it became an integral part of the community and they basically added the same thing to the game
Rdav  [ophavsmand] 22. feb. 2022 kl. 13:03 
with difficulty, SE and long range are still somewhat opposed
Füchschen 19. feb. 2022 kl. 16:00 
This is just awesome. It even works with Railguns and hinges as mentiond below.
but here is a question:
How do i defend against long range "skill shot" railgun attacks from players?
The "detector turret" on vanilla only has a range of 800m.
How do i defend something like a real-scale Halo from attacks like this?
(ok, its not real-scale... but 232,2km /144miles circumference is pritty big, ok? ._.)
https://cdn.discordapp.com/attachments/621449708602130462/943956775009415168/unknown.png
https://cdn.discordapp.com/attachments/621449708602130462/943965716690919496/unknown.png
Waldherz 13. feb. 2022 kl. 6:23 
Would it be possible to add this: An option in the script, or somewhere else, which will return the turrets to a specific point, not just the center of the upper and lower limits.

E.g. I want all my turrets to be returned to 0°, but not all of them have an equal rotation angle to all sides. So currently they return to some point inbetween.

Example: Roation limit 180 - -30°
But I want the rest position to be at 0°
Thurmanite5 5. feb. 2022 kl. 11:18 
Cool, thanks
Rdav  [ophavsmand] 5. feb. 2022 kl. 2:21 
it will work if you use the left handed arm tag in the hinge name iirc
Thurmanite5 5. feb. 2022 kl. 1:25 
Kind script creator, is there a way to use a hinge instead of a rotor for elevation? I've designed a big rotor/hinge turret and then got tired of manually controlling it so I was wondering if your script could control it as is or if I need to redesign the whole elevation setup in order to make it work.
Rdav  [ophavsmand] 12. jan. 2022 kl. 14:30 
they will only ever target what your (vanilla) turrets are targeting
wingmaster 12. jan. 2022 kl. 8:20 
my turrets keep shooting my own base
Rdav  [ophavsmand] 2. jan. 2022 kl. 3:31 
yes that should be fine
BOOTZ 2. jan. 2022 kl. 0:32 
if i keep it just the standard one up and over to right setup, can i route conveyors behind top rotor and add "2nd arm" so there no need for 2nd rotor?
space cowgirl joy 4. dec. 2021 kl. 21:35 
does this work with hinges?
Rdav  [ophavsmand] 31. okt. 2021 kl. 4:39 
there is already a configurable cap on rotor speed iirc
DazeyDream 30. okt. 2021 kl. 21:08 
Pretty pretty please, add support for double hinge turrets! Also, being able to edit resting positions in custom data would be really sweet. The auto resting positions can be heretical sometimes.Turning speed restrictions would be real handy too since my turrets like to rip themselves to bits by moving too fast and exerting too much force on themselves in awkward ways.
Morthwyl 8. okt. 2021 kl. 10:51 
Is there a fix to weapons that never stop firing? I've got a few turrets and I have to have a special button that turns off all the weapon blocks or they just spam shots into the empty distance forever.
★➽AminoAcids➽★ 11. sep. 2021 kl. 9:27 
For some reason, the aiming of the turrets is offset from the actual target is there a way to solve this?
[TGG] DoctorHeisenberg 10. sep. 2021 kl. 10:39 
ok
Rdav  [ophavsmand] 9. sep. 2021 kl. 13:34 
its something I'd like to do at somepoint
[TGG] DoctorHeisenberg 9. sep. 2021 kl. 13:22 
could you make more autonomous drone scripts please that would be awesome
Lunatricky 9. sep. 2021 kl. 1:46 
@Dân quân tự vệ you should be able to mitigate this problem by setting up limits to rotation for all the rotors/hinges so that they don't hit your own ship. I know it would be better to just have the script do that but at least there is a way to do it.
quocphu1905 18. aug. 2021 kl. 4:05 
Hello. Just wanna ask if your script has some way of preventing the guns from shooting through the ship they are mounted? I just tried ur script earlier and they literally tore my ship in two pieces (horizontally). Thank you for still an amazing script anyway.
Palladin888 7. aug. 2021 kl. 16:49 
Will this script ever work with weaponcore compatible weapon packs.

I was just playing around with the weaponcore vanilla replacement weapons and could not get the script to work. Once I unloaded the mod the script worked fine.
RMazer 4. aug. 2021 kl. 12:30 
ok cool thanks
Rdav  [ophavsmand] 4. aug. 2021 kl. 11:59 
should do, they need left in the name now though
RMazer 4. aug. 2021 kl. 11:59 
ya does it run with hinges aswell?
Dark Eden 1. juli 2021 kl. 16:11 
Oohh, sorry I meant hinges.
Rdav  [ophavsmand] 30. juni 2021 kl. 13:23 
I mean it would be pretty non functional without rotors
Dark Eden 29. juni 2021 kl. 21:44 
Hello, just one question, does this support rotors?
holden4ever 24. juni 2021 kl. 3:08 
Any chance you could upload this plus your other scripts to mod.io for Xbox users with dedicated servers?
le goob 16. juni 2021 kl. 17:42 
god bless space engineers programmers
Waldherz 6. juni 2021 kl. 1:45 
Can I somehow set this up so it doesnt use all turrets?

I think you provided an option for it but I dont understand any codes soo...
Aggressor 25. maj 2021 kl. 6:45 
Rdav its there any chance so You join my game and help me out solve problem with crazy moving turrets ? It moving from point A to B and shooting ground, no enemies nearby. It shooting by shoort burst every fev seconds.
Konraad 24. maj 2021 kl. 8:40 
TubeChild, this script does not work with weaponcore, if thats what you're trying
TubeChild 21. maj 2021 kl. 16:20 
Hell Rdav! Your script works fine when I'm copying the setup from the gif. However, when I try to do the same with a modded weapon, the script can't find and identify it as a rotor turret. What am I doing wrong?
realHartman 18. maj 2021 kl. 11:42 
Hello. Does this works with WeaponCore? Whip's script doesn't and I'm finding an alternative.
Rdav  [ophavsmand] 13. maj 2021 kl. 9:48 
it does still work, if it is not working it is likely due to a set up problem or an issue with a mod
Ace101 13. maj 2021 kl. 8:32 
no longer works
custom turret does not track nor fire with the vanilla turret
TheMajesticCarabao 13. maj 2021 kl. 4:01 
For some reason, when using two elevation turret, one shoots at the intended target but the other shoots somewhere else. Anyway to solve this?
Morthwyl 11. maj 2021 kl. 11:35 
Not really, it's a 90% vanilla world(Only thruster and battery mods), it's got about 16 rdav turrets with 8 vanilla turrets as designators, is it a problem that all the rdav turrets are double rotoring?

I removed a bunch for a test and it works on the reduced ship, but the primary is still having issues
Rdav  [ophavsmand] 11. maj 2021 kl. 10:36 
It should only happen if it finds itself having to scan a substantial amount of rotors to see if they are turrets, and even then I never managed to reach that limit personally, it does seem odd, is there anything special about the ship
Morthwyl 11. maj 2021 kl. 10:34 
26k, so not even slightly the largest ship I've crammed these turrets on(That sucker was almost 70k blocks with 20 rdav controlled turrets)
Rdav  [ophavsmand] 11. maj 2021 kl. 10:33 
huh thats odd, its not an absolutely gargantuan ship is it?
Morthwyl 11. maj 2021 kl. 10:24 
For some reason I keep getting the error that the script is too complex.