Forum rules - please read before posting.

Question About Making an NPC Follow the Player

I would like to make an NPC follow the player character during gameplay. However, I am unsure about the best way to achieve this functionality.

Could you please guide me on how to set up an NPC to follow the player?

Comments

  • The Character: NPC follow Action can be used to have an NPC follow the Player. The fields within it can control how frequently they move, and how close they get.

    If you need the NPC to follow the Player across scenes, you'll need to enable Player switching, and convert the NPC to a non-controlled Player prefab - see the Player switching tutorial for details.

  • I applied the action but the NPC still doesn't follow the player it's even don't move at all, what could be the reason?

  • What are your AC/Unity versions, does your scene have a NavMesh set up for characters to rely on when pathfinding, and do you get any related messages in the Console?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.