Space Engineers

Space Engineers

MART | Whip's Mouse Aimed Rotor Turret Script
1.876 comentarios
Whiplash141  [autor] 27 MAY a las 16:58 
> is there a way to use a piston between rotor and weapon/tool?

No. You can with TCES though. Honestly TCES can do everything MART can do at this point.

> Error no mart groups found

Well... do you have MART groups? lol
afox 27 MAY a las 6:14 
Error no mart groups found
Yuri Tard 13 MAR a las 9:29 
is there a way to use a piston between rotor and weapon/tool?
Whiplash141  [autor] 31 DIC 2024 a las 9:15 
Look at the release year of this script @caliko. also the emphasized text in the description directly answers that
caliko 31 DIC 2024 a las 6:50 
Doesnt the turret controller do this? i am confused, I love your scripts tho. Would love to know what this ones task is ^^
Shroomteller 26 DIC 2024 a las 10:59 
Excellent work, thanks so much! Easy configuration and use.
Ricky David 5 NOV 2024 a las 9:41 
Hello! If I wanted to use the stabilization feature of the scripts and make a self balancing grid that ignored mouse inputs, how would or could I do that?
Comet 28 SEP 2024 a las 10:55 
@Into you could probably build that out with a couple of event controllers. One to detect if the controller in use is no longer occupied and one to detect the rest angle being reached
Into 5 SEP 2024 a las 9:14 
can you add a timerblock trigger if rest position is reached and mous-control on/off switch?
I use pistons and hinges to retract the camera after use and a timerblock to disable MART, but there is always a short timespan between MART turning off and end of rest position, inwhich any mouse movement can mess up the retraction and cause clang.
Whiplash141  [autor] 29 AGO 2024 a las 19:33 
Select the weapons on your toolbar. This will fire all weapons of that type though, so if you have multiple turrets, that can be an issue. Alternatively, TCES also gets around this by using the custom turret controllers which segregate your fire command to the turret you are controlling. (MART can not do this because the hooks aren't there for scripts)
ButtSnorklr 29 AGO 2024 a las 18:58 
Is there any way to make it fire on LMB or shoot rather than crouch?
Whiplash141  [autor] 24 AGO 2024 a las 12:51 
Nope, but if you aren't opposed to custom turret controllers, you can omit the azimuth and my script TCES will extend all of the rest of the functionality that MART provides (like turret stabilization and rest angles) to that custom turret :)
GazatronPrim 24 AGO 2024 a las 8:04 
is there a way of using this without the Azimuth?
Whiplash141  [autor] 23 AGO 2024 a las 12:59 
Got a minimal blueprint or world that I can look at?
Bugall 22 AGO 2024 a las 6:14 
Im in the seat when tryina use the MART turret and its a cockpit seat
Whiplash141  [autor] 21 AGO 2024 a las 21:58 
it isnt the camera that matters, it is the seat that you grouped with the MART turret that matters. Are you actively controlling the seat? If so, what kind of seat?
Bugall 21 AGO 2024 a las 17:49 
For some reason even though i have the MART turret fully set up even with the script saying its working when i control the camera it just doesnt respond to mouse input. it is on mutible pistons but idk why it doesnt work
Whiplash141  [autor] 6 JUL 2024 a las 12:16 
no
G-han 6 JUL 2024 a las 9:20 
It seems like this script allways checks the elevation rotor or hinge to get weapons or tools. Isn't the opposite possible?
Whiplash141  [autor] 24 JUN 2024 a las 9:42 
Not a mod, and it still does a few things that custom turret controllers dont. However, I coded all that functionality into TCES (Turret Controller Enhancement Script) , so if you are looking for things like aim stabilization, rest angles, and multiple elevation rotor control, I'd use that script instead.
SongAngel 24 JUN 2024 a las 6:42 
Is this mod still relevant now that we have custom turret controllers? Just now stumbling on this mod is why I'm asking.
Whiplash141  [autor] 19 MAY 2024 a las 11:01 
No it's not. I use hinges all the time. Try enabling inertia tensor only on the elevation
Bobbylicious 19 MAY 2024 a las 9:43 
It works with hinges Yes, but input is slow, and hinges doesn't stop immediately. Iv'e played around with the settings of the hinges, but no difference
Average AMD neanderthal 2 MAY 2024 a las 22:00 
yes it is, thank you for your time :)
Whiplash141  [autor] 2 MAY 2024 a las 15:37 
In the future, if I have to make manual edits to reproduce the issue, you increase the chances of me not being able to track down your problem. I assume this is now resolved?
Average AMD neanderthal 2 MAY 2024 a las 8:17 
The blueprint wasn't mine so i wasn't aware of it's version lol.
And i know, he doesn't have that either. but it takes 2 seconds to put in so it was more of a DIY.
Whiplash141  [autor] 2 MAY 2024 a las 1:19 
Also, neither the elevation nor the azimuth rotors have rest angles set in their custom data.
Whiplash141  [autor] 2 MAY 2024 a las 1:18 
Homie, you are using a version of MART from 2020. Please update the script lol
Average AMD neanderthal 1 MAY 2024 a las 3:45 
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2491225961 i use a slightly modified version of this one, but it is functionally the same.
Whiplash141  [autor] 30 ABR 2024 a las 16:24 
Got a blueprint I can look at? Works on my machine ™
Average AMD neanderthal 30 ABR 2024 a las 10:46 
In the PB arguments i tried both 'rest' and 'Rest' without quotation marks of course.
Whiplash141  [autor] 29 ABR 2024 a las 22:03 
How exactly are you typing the rest command?
Average AMD neanderthal 29 ABR 2024 a las 21:47 
When i am in control of the rover, forcing it to its rest position via the PB command doesn't work until i leave the cockpit.
Whiplash141  [autor] 29 ABR 2024 a las 15:21 
If you are controlling the turret, then it is not "at rest" and it will not go to the rest angle. You can force a return to rest with the argument: rest , but that makes the turret go to rest and once it is done, returns control back to the player.
Average AMD neanderthal 29 ABR 2024 a las 13:34 
I have the script running on a rover with a turret and i set the 'returntorestposition' to true. This has no effect on the turret whatsoever. If i set an angle in the rotor itself or run the command via the PB then i can do it, as long as i am not in the cockpit. But not while i am in it and controlling it. That just gives me full control. But your guide says that turrets come with a default rest angle and that the PB rest command overwrites player input while it's active. So how come?
Almirante Orlock 30 MAR 2024 a las 18:58 
Never mind I figure it out :D I had to create two MART groups using the same reference
Almirante Orlock 30 MAR 2024 a las 18:34 
I'm trying to control several custom turrets at once but if I add more than one azimuth rotor to the same MART group, the script will allow me to control only one of them. Is there a way to control more than one azimuth rotor in one MART group?
Rightraoedhelontidae 30 MAR 2024 a las 15:01 
ok! thank you and sorry, i completely missed that
Whiplash141  [autor] 30 MAR 2024 a las 13:24 
"Setting Turret Rest Position" section above covers that
Rightraoedhelontidae 30 MAR 2024 a las 10:04 
The angle at which it will go when "resting", sorry for not being clear
Whiplash141  [autor] 30 MAR 2024 a las 10:02 
change *which* values?
Rightraoedhelontidae 30 MAR 2024 a las 7:14 
Is it possible to change the values for "return to rest position" setting?
Moonraker 23 MAR 2024 a las 19:48 
@Whiplash141 you're right it's def still working, for some reason I didn't think you needed to group the weapons/tools as well, retracted my initial comment, thanks!
Whiplash141  [autor] 23 MAR 2024 a las 19:13 
@Moonraker:
I'm using it right now, so it definitely still functions. Check ownership and check your groups, because the issue is not in the code.

@GamerForLife:
Did you run setup again after this? I'll check on my end shortly
Gamerforlife 17 FEB 2024 a las 21:40 
Hello. Not sure if it's me, the game or the script but I'm having problems with reversing the turrets commands relative to the control seat. So my control seat is normal right side up and my turret is upside down. I went into the programmer and clicked Custom Data and changed the controlSeatRelativeMouseControl = False and it still behaves as if it were set to controlSeatRelativeMouseControl = True. Am I doing something wrong? I checked to make sure there were no other control chairs on the same MART, I checked to make sure there wasn't a duplicate programmer in another turret. At this point I just don't know what to do. any help or suggestions you might have would be greatly appreciated. :steamhappy:. :steamthumbsup:
bsimp14 6 AGO 2023 a las 18:06 
Edit from erlier everythig is owned by me, eveything is labled as it should be,eveything is grouped up asit should be: i'm still getting the alert of worning no weapon or tool found for hinge 1.and the scroll thing at the side is bugged so while i cann't scroll further down i'm sure it says that for all the hinges. what have i done wrong?
Argus von Stein 4 AGO 2023 a las 14:34 
Can I make it work if the weapon group is on an additional rotor that spins the guns? Like Azimuth-Elevation-spinner-guns setup?
Argus von Stein 4 AGO 2023 a las 0:17 
"My next plan long term stretch goal is to make this code interface with my Turret Slaving Script to allow a MART to control other rotor turret's angles"
One can dream...
Endarkaris 3 AGO 2023 a las 10:40 
I'm trying to make a small turret but it's wobbling a LOT. I've tried decreasing the rotor and hinge torque and using a gyro outside of the group, but there's still a small amount of wobble. Any easy fixes to this?
Whiplash141  [autor] 1 AGO 2023 a las 12:27 
No.

If you construct a turret such that the weapon is in on the elevation in head, and the elevation is on the azimuth be head, everything works without issue on version 38.1.0.

Check block ownership.