How to make A* Destination Setter follow a player prefab.

So Basically I want to add multiple targets on A* DS.

Problem is that I have a system where when the player dies, a player prefab will take over. Anyway how to fix this?

thanks.

Generally you have some type of target manager (or managers), where target could be player, enemy whatever.

It would have an API such as “Give me the players location” and it would return things like

  • here is the target you want
  • there is no target
  • there is a target but I can’t tell you where he is (like he’s invisible for instance)

Ok Thanks! I tried to do what you did and it worked alright. Just need to fix a few bugs here and there. Thanks anyway

1 Like