playMaker

Author Topic: [How/Tips] Making a 3D compass to track NPC Quest?  (Read 1538 times)

dhanze

  • Playmaker Newbie
  • *
  • Posts: 25
[How/Tips] Making a 3D compass to track NPC Quest?
« on: March 08, 2015, 02:41:32 PM »
Hello guys can you give me some idea or tips how to make compass to track NPC into another NPC

I can figure it how...

thanks

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: [How/Tips] Making a 3D compass to track NPC Quest?
« Reply #1 on: March 11, 2015, 06:02:13 AM »
I had todo something similar for a Minimap. My Aproach was

1.) Write all Gameobjects you might point to in an array at init or creation (you can search Objects by tag and add them to an array)
2.) find the closest object from that array to the Player
3.) use the found object as an Look at Target for the pointer (or semilar, depends what kind of representation you need in your UI)

Alternatively you can just use "find closest by tag" and skip the array maker if you have just a few possible goals to point at.

best
Peter