Space Engineers

Space Engineers

MART | Whip's Mouse Aimed Rotor Turret Script
1,876 Comments
Whiplash141  [author] May 27 @ 4:58pm 
> 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 May 27 @ 6:14am 
Error no mart groups found
Yuri Tard Mar 13 @ 9:29am 
is there a way to use a piston between rotor and weapon/tool?
Whiplash141  [author] Dec 31, 2024 @ 9:15am 
Look at the release year of this script @caliko. also the emphasized text in the description directly answers that
caliko Dec 31, 2024 @ 6:50am 
Doesnt the turret controller do this? i am confused, I love your scripts tho. Would love to know what this ones task is ^^
Shroomteller Dec 26, 2024 @ 10:59am 
Excellent work, thanks so much! Easy configuration and use.
Ricky David Nov 5, 2024 @ 9:41am 
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 Sep 28, 2024 @ 10:55am 
@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 Sep 5, 2024 @ 9:14am 
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  [author] Aug 29, 2024 @ 7:33pm 
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 Aug 29, 2024 @ 6:58pm 
Is there any way to make it fire on LMB or shoot rather than crouch?
Whiplash141  [author] Aug 24, 2024 @ 12:51pm 
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 Aug 24, 2024 @ 8:04am 
is there a way of using this without the Azimuth?
Whiplash141  [author] Aug 23, 2024 @ 12:59pm 
Got a minimal blueprint or world that I can look at?
Bozall Aug 22, 2024 @ 6:14am 
Im in the seat when tryina use the MART turret and its a cockpit seat
Whiplash141  [author] Aug 21, 2024 @ 9:58pm 
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?
Bozall Aug 21, 2024 @ 5:49pm 
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  [author] Jul 6, 2024 @ 12:16pm 
no
G-han Jul 6, 2024 @ 9:20am 
It seems like this script allways checks the elevation rotor or hinge to get weapons or tools. Isn't the opposite possible?
Whiplash141  [author] Jun 24, 2024 @ 9:42am 
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 Jun 24, 2024 @ 6:42am 
Is this mod still relevant now that we have custom turret controllers? Just now stumbling on this mod is why I'm asking.
Whiplash141  [author] May 19, 2024 @ 11:01am 
No it's not. I use hinges all the time. Try enabling inertia tensor only on the elevation
Bobbylicious May 19, 2024 @ 9:43am 
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 May 2, 2024 @ 10:00pm 
yes it is, thank you for your time :)
Whiplash141  [author] May 2, 2024 @ 3:37pm 
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 May 2, 2024 @ 8:17am 
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  [author] May 2, 2024 @ 1:19am 
Also, neither the elevation nor the azimuth rotors have rest angles set in their custom data.
Whiplash141  [author] May 2, 2024 @ 1:18am 
Homie, you are using a version of MART from 2020. Please update the script lol
Average AMD neanderthal May 1, 2024 @ 3:45am 
https://steamcommunity.com/sharedfiles/filedetails/?id=2491225961 i use a slightly modified version of this one, but it is functionally the same.
Whiplash141  [author] Apr 30, 2024 @ 4:24pm 
Got a blueprint I can look at? Works on my machine ™
Average AMD neanderthal Apr 30, 2024 @ 10:46am 
In the PB arguments i tried both 'rest' and 'Rest' without quotation marks of course.
Whiplash141  [author] Apr 29, 2024 @ 10:03pm 
How exactly are you typing the rest command?
Average AMD neanderthal Apr 29, 2024 @ 9:47pm 
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  [author] Apr 29, 2024 @ 3:21pm 
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 Apr 29, 2024 @ 1:34pm 
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 Mar 30, 2024 @ 6:58pm 
Never mind I figure it out :D I had to create two MART groups using the same reference
Almirante Orlock Mar 30, 2024 @ 6:34pm 
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 Minima Mar 30, 2024 @ 3:01pm 
ok! thank you and sorry, i completely missed that
Whiplash141  [author] Mar 30, 2024 @ 1:24pm 
"Setting Turret Rest Position" section above covers that
Rightraoedhelontidae Minima Mar 30, 2024 @ 10:04am 
The angle at which it will go when "resting", sorry for not being clear
Whiplash141  [author] Mar 30, 2024 @ 10:02am 
change *which* values?
Rightraoedhelontidae Minima Mar 30, 2024 @ 7:14am 
Is it possible to change the values for "return to rest position" setting?
Moonraker Mar 23, 2024 @ 7:48pm 
@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  [author] Mar 23, 2024 @ 7:13pm 
@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 Feb 17, 2024 @ 9:40pm 
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 Aug 6, 2023 @ 6:06pm 
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 Aug 4, 2023 @ 2:34pm 
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 Aug 4, 2023 @ 12:17am 
"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 Aug 3, 2023 @ 10:40am 
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  [author] Aug 1, 2023 @ 12:27pm 
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.