Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: dhanze on March 08, 2015, 02:41:32 PM

Title: [How/Tips] Making a 3D compass to track NPC Quest?
Post by: dhanze 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
Title: Re: [How/Tips] Making a 3D compass to track NPC Quest?
Post by: phannDOTde 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