Is there any method or alternative to prevent Turret to targeting itself ?
I want to make online multiplayer top down shooter similar to io games, so, there will be a dozens player on a room. And if there is not enough player, system will create bot player.
Bot player and real player is a same object / sprite, and there is a separate sprite with pathfinding and turret behavior, Bot player will be pinned with this sprite and a variable for bot identification.
Bot movement > use pathfinding to patrol/moving, and if turret are detecting target, bot will star shooting.
Target for turret are grouped using families (pick nearest target)
Is there any solution for this?
Thanks