An autopilot to create Star Wars-style ship battles. The programs work with any ship. I use older versions of CC, CC:VS, and VS, so I don’t know if the programs work with the newer versions. Some parts of the program are written in Italian, so if you find any strange words, they’re in Italian.
Here are the specifications:
(first file) (“prova-movimento-12”) Autopilot:
-ship tracking with flanking
-some maneuvers to vary the battle
-dodging ships (to avoid colliding)
-self-adjusting size
(third file)(“sparo”) shot:
not very accurate
can fire forward, left, and right based on the position and distance of the other ship
How it works:
Autopilot:
Connect the corresponding sides of the redstone to the engines (as shown in the image), adding engines that push the ship sideways for lateral dodging (if they aren’t added, the ship could crash into other ships).
a simple setup, to this setup you need to add motors connected to the top and bottom of the computer to make the ship go up and down
image.png
third file (shot): you simply have to connect the sides to the cannons
HOW TO START THE PROGRAMS: Before starting the programs, you need to change a few small things:
First program: at the beginning of the program, there’s a line with myID, and there are some letters in quotation marks. Write the name of the ship inside the quotation marks (example: Venator, ship1…). You need to look for the same thing in all the other scripts. Another thing you need to do is insert the allies: just below the myID line, there’s an allies table, the one with “local allies” written on it. In there, you must always put the names of the allied ships in quotation marks. Repeat this in the “shot” script as well. Repeat the same with the other ships. To be safe, start the autopilot and firing scripts first, then the p-t.
WARNING! The autopilot and the firing may not work properly, if they don’t work you can fix them like this: for the autopilot change where it says local right = “right” to local right = “left”, and local left = “left” to local left = “right”, that should work. For the firing do this: in local YAW_OFFSET = math.rad(180), change 180 to 0, 90, -90, -180
I know, but the programs are a bit difficult to use and so I had to make a somewhat detailed guide
This conversation is on Discord · Reply there
image.png
image.png
image.png
image.png
image.png