Jump to content

Welcome to the Forum!

The best place to exchange builds and ideas! Vote for the best ideas and suggestions here.

Join the Avorion Discord!

Connect with other passionate players and talk about the latest news.
Discord

DLC Avorion Into the Rift Out Now!

Now available on Steam!
Steam

[0.26] AI ignores "registerFriendEntity"


Rinart73
 Share

Recommended Posts

No, it stops.

 

The problem is that when it comes to ShipAI commands like these

setAggressive(var attackCivilShips, var canFinish) 
setFly(vec3 location, float arrivalRadius, var collisionException)

and others, I can't just easilly reset them via "setIdle - setBackToOriginal", because I don't have a way to get their arguments. I don't know if certain ship was set to attack civil ships or not, which coordinates it's flying to etc.

Link to comment
Share on other sites

  • Boxelware Team

The "attack" order is a very simply-structured order that will attack the target until destroyed, and it's meant to be able to attack allies (for example if you order a ship via the strategy mode to attack an ally for some reason).

 

If you want the attack order to stop attacking a ship because it was set to friendly, you have to stop/cancel the command by setting a new one (which is what happens internally as well). It won't stop by itself.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...