Space Engineers

Space Engineers

32 ratings
2cm Rotor Turret Script
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
39.664 KB
15 May, 2019 @ 6:18pm
6 Sep, 2019 @ 1:32pm
2 Change Notes ( view )

Subscribe to download
2cm Rotor Turret Script

Description
I will edit description in future.
This code not completed.



I refer a lot of code from Gun Fire Control System

Maybe version Mk1?...
I forgot what version I was refer...

So. You can use another scripts. like GFCS.


Functions
  • Support multiple turrets.
  • Support Timer Block trigger.
  • Support manual control.

============================

Manual control
You can control custom turret with Remote Control Block.
  • Aiming with "Mouse(or joystick)".
  • Firing with "Space(or Jump)".
  • "Q(Roll left)": Slow aiming.
  • "E(Roll right)": Fast aiming.

============================

Install instruction.
You need to group one or more single block turrets into "Designators".


Turret
  • Rotor with name contains "Azimuth"
  • Rotor with name contains "Elevation"
  • Remote Control with name contains "Turret" in gun house
  • (optional) Weapons in gun house
  • (optional) Timer with name contains "Trigger" in gun house

You don't need to grouping turret blocks.
Place direction very important.
All rotors must placed zero angle point to forward of turret.
Elevation rotor placed left side of remote control (gun house)

Parameters (Remote Control Custom Data):
MuzzleSpeed=600 // Weapon muzzle speed, if set zero means instant hit weapon like laser. MaxRange=1200.0 // Maximum aiming range. MinRange=0.0 // Minimum aiming range. AimingTolerance=5.0 // Angle tolerance to fire in degree. AzimuthRotationSpeed=4.0 // Azimuth rotor speed limit. ElevationRotationSpeed=2.0 // Elevation rotor speed limit. AzimuthAngleOffset=0.0 // Azimuth angle offset in degree. ElevationAngleOffset=0.0 // Elevation angle offset in degree. AzimuthEquilibrium=0.0 // Azimuth reset angle in degree. ElevationEquilibrium=-45.0 // Elevation reset angle in degree. EquilibriumRotationSpeed=0.5 // Reset rotor speed rate. EquilibriumTime=20 // Reset after time. ReferenceOffsetX=3.5 // Aiming position x offset in meter. ReferenceOffsetY=0.0 // Aiming position y offset in meter. PitchWave=0.0 // Swiping angle when firing.



Designators
Make group with name "Designators".
can contains any turrets even mods.

10 Comments
SOBEK 6 Dec, 2019 @ 2:03am 
Hi, script is now broken , after checkup script in pb , something is wrong :)
anrew10 7 Sep, 2019 @ 6:53am 
Similar enough to MART, yet deferent enough to be unique

I like it
2cm  [author] 6 Sep, 2019 @ 1:38pm 
@Tallest_Midget
You can find that in custom data of Remote Block

@MathiasRAF
Yes. This script supports multiple turrets.
However, if you are using an ion turret, I recommend adding an ion management system.
MathiasOSX 12 Aug, 2019 @ 9:54am 
Does this work for multiple turrets / both laser and Ion on the same grid?
Tallest 10 Jun, 2019 @ 4:58pm 
I can find where to change the range, currently using atlas laser
2cm  [author] 2 Jun, 2019 @ 9:43am 
@overwerk
RefereceOffsetY parameter in custom data of remote control block may help you.

@Spectre25
Must align the 0 degree point of the rotor stators to the forward direction of the turret to work correctly.
overwerk 1 Jun, 2019 @ 1:42pm 
i have noticed that the elevation rotor always aim above where its suposed to aim. i have tried many ways of preventing the issue but it always pops up no matter what i do
Charlie_Foxtrot25 29 May, 2019 @ 3:58pm 
Any chance we could get this script updated?
Both Azimuth and Elevation are not functioning... I even tried copying the demo world script and still no luck...
Bruno051 26 May, 2019 @ 7:20am 
The turret fires and the elevation rotor works, but the azimuth rotor never works. how do i fix this?
Gryphorim 15 May, 2019 @ 6:59pm 
Ah, I see where I went wrong. Rotor positions were wrong, and I had elevation rotor first, then azimuth off of that