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.17-0.18.3 - 'unregisterEnemyEntity' doesn't seem to work


Rinart73
 Share

Recommended Posts

0.17-0.18.3

 

I register an entity (asteroid for example) as enemy:

local ai = ShipAI()
ai:registerEnemyEntity(target.index)
ai:setPassiveShooting(true)

 

Ship starts to attack it (not always , another bug?)

Then I'm trying to unregister it or register it as a friend:

local ai = ShipAI()
-- any of the following
ai:unregisterEnemyEntity(target.index)
ai:registerFriendEntity(target.index)

Ship in passive fire mode doesn't care and continues to fire.

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...