Third Person Game targeting an enemy player

Hello, I’ve tried searching the wiki and forums but the use of the word “target” doesn’t relate the correct answers.

I am creating a third person game where you are able to “tab target” or “mouse click” a character in the game to select them as your “target”. Example: “target” an enemy player to attack, or “target” a friendly player to heal.

I’m having trouble locating a tutorial on how to accomplish this.

Any help or direction would be greatly appreciated.

Many thanks, and cheers!

You’ll want to use the ‘set focus’ node. This will tell any AI to turn to face the target.

movement will have to be handled separately of course, and you may want to set the focus only after they’ve arrived to their destination (unless you want them to face that target at all times when moving)