so im making a monster follow the player around but when an object is not in line of sight, they move to it, its been working but when the monster goes back to their own object, they just go to the nearest one, which is from another monster
I've tried to diferentiate by giving both the object and the monster an instance variable and even listed it in the conditions "if ObjectA.Number = MonsterB.Number" but its not working , can someone help?