Jump to content

0.17-0.18.3 - 'unregisterEnemyEntity' doesn't seem to work


Rinart73

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
×
×
  • Create New...