Announcement

Collapse
No announcement yet.

AI Blueprinting - How do I make an NPC face a player character?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    AI Blueprinting - How do I make an NPC face a player character?

    I am watching Ryan Laleys tutorials on Youtube and I wanted to know how I can create a task on the behaviour tree in which the NPC simply turns to face the player characters location? I've been having a lot of trouble with this at the moment.

    I have already made the NPC stop within a certain distance after chasing the player character. Now I want the NPC to turn and face the player character, until the player character moves out of range.

    #2
    There is a vector function called find look at rotation that would work. If you mean the rotation over time, there are some functions for that (one called Look At).
    BlackbirdOA (WIP game) - AegeanMusic (VST etc. plugins) - Twitter

    Comment


      #3
      Simple task to make the NPC face the player:

      Click image for larger version  Name:	1.jpg Views:	0 Size:	141.3 KB ID:	1795776
      "I have harnessed the shadows that stride from world to world to sow death and madness."

      Comment

      Working...
      X