Space Engineers

Space Engineers

评价数不足
Turret AI Fix OBSOLETE
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
400.507 KB
2022 年 4 月 6 日 上午 1:18
2022 年 4 月 13 日 下午 6:00
3 项改动说明 ( 查看 )

订阅以下载
Turret AI Fix OBSOLETE

在 Saschahi 的 1 个合集中
Saschahis Space Engineer Scripts
2 件物品
描述
-------------------------------------------------------------------------------------------------------------------------------------

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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1707280190