This is my current wingman AI, which uses the LastEntity semi-cheat for sensor stuff, so I gotta merge the above into the below.
/*WingmanDrone with Fixed Weapon by Spiritplumber based on Sunoko*/
// ship needs: remote control named as below, sensor named as below, a forward facing gun OR a turret that can also face forward (can have more turrets), optionally a display.
// settings
int SafeDistanceEnemies = 40; // If closer than this to target, turn collision avoidance on....
While we wait for sensor changes... Turret as sensor
/*WingmanDrone with Fixed Weapon by Spiritplumber based on Sunoko*/
// ship needs: remote control named as below, sensor named as below, a forward facing gun OR a turret that can also face forward (can have more turrets), optionally a display.
// settings
int SafeDistanceEnemies = 40; // If closer than this to target, turn collision avoidance on....
While we wait for sensor changes... Turret as sensor