Space Engineers

Space Engineers

32 beoordelingen
2cm Rotor Turret Script
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Bestandsgrootte
Geplaatst op
Bijgewerkt op
39.664 KB
15 mei 2019 om 18:18
6 sep 2019 om 13:32
2 wijzigingsnotities (weergeven)

Abonneren om te downloaden
2cm Rotor Turret Script

Omschrijving
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 opmerkingen
SOBEK 6 dec 2019 om 2:03 
Hi, script is now broken , after checkup script in pb , something is wrong :)
anrew10 7 sep 2019 om 6:53 
Similar enough to MART, yet deferent enough to be unique

I like it
2cm  [auteur] 6 sep 2019 om 13:38 
@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 om 9:54 
Does this work for multiple turrets / both laser and Ion on the same grid?
Tallest 10 jun 2019 om 16:58 
I can find where to change the range, currently using atlas laser
2cm  [auteur] 2 jun 2019 om 9:43 
@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 om 13:42 
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 mei 2019 om 15:58 
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 mei 2019 om 7:20 
The turret fires and the elevation rotor works, but the azimuth rotor never works. how do i fix this?
Gryphorim 15 mei 2019 om 18:59 
Ah, I see where I went wrong. Rotor positions were wrong, and I had elevation rotor first, then azimuth off of that