How to fix AI not being able to kill eachother

Everytime I try to update their range, melee’s range, making a new weapon, etc, it dosent work and it always looks like the image below and I can’ seem to fix it.
Screenshot_15

Yes, the weapon does do damage to the player and other things but not eachother and this other unit for some reason. (image below)
Screenshot_16

1 Like

Go in World > Player Types and click on the AI player type, then set it to be hostile to itself.



1 Like

The hostile was already hostile to it self, hence why they were attacking eachother
Screenshot_17

1 Like

Oh, right. Can you send a link to your game then?

1 Like
1 Like

It seems like the damage system does not allow for units owned by the same player to damage each other. You will need to either make multiple AI players to own the units that you want to attack each other, or make an entity script on the bat that will damage units when it is used no matter what.

1 Like

I just realised that now the unit is attacking themselves

1 Like