Space Engineers

Space Engineers

Not enough ratings
Turret AI Fix OBSOLETE
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
400.507 KB
6 Apr, 2022 @ 1:18am
13 Apr, 2022 @ 6:00pm
3 Change Notes ( view )

Subscribe to download
Turret AI Fix OBSOLETE

In 1 collection by Saschahi
Saschahis Space Engineer Scripts
2 items
Description
-------------------------------------------------------------------------------------------------------------------------------------

THIS SCRIPT IS OBSOLETE. ONLY USE IF YOU FOR SOME REASON PLAY IN VERSION 1.200

-------------------------------------------------------------------------------------------------------------------------------------

This Script tries to help mitigate the Issue that Turret AI doesn't work in verion 1.200.x on multiplayer Servers on non-static grids (ships, not stations)

This Script will be useless once Version 1.201.x releases

People have already found out that if you shoot a turret once, while it is locked onto a target, it'll fix itself for a while
this Script will try to automate that.

It first collects all your turrets into a list, and then every 100 ticks it'll check if the turret has catched something with it's auto targetting.
if it catches something in its auto targetting, the Script will try the "Shoot Once" command automatically. then it'll apply a cooldown of x seconds where the script won't touch the turret again




Usage:
1. Install Script in Programming block on your ship
2. Compile
3. Click OK
4. Done

The Script only collects turrets on startup. so if you add or remove turrets recompile the program once so it catches the new Turrets

This Script is made with performance in mind, and only runs once ever 100 gameticks. Which means Server hoster shouldn't complain too much about this

DISCLAIMER:
A Ton of this code was yoinked from the "Whip's Turret Based Radar" Script
This isn't a reupload of that mod, but a mod with a lot of borrowed code and a entirely different purpose
Please also suppor the Author of Whip's Turret Based Radar
here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1707280190