playMaker

Author Topic: NPC navmesh path  (Read 932 times)

karias361

  • Playmaker Newbie
  • *
  • Posts: 7
NPC navmesh path
« on: June 26, 2023, 08:31:04 AM »
Hi, I've been searching the forum, looks like there's a few questions about NPC paths that aren't solved.  Some get pretty old.  I'm trying to create an NPC villagers to follow waypoints to a location.  Seems like a common function but can't find a tutorial that fits that need.  I managed to get the agent to a destination and follow that destination if I move it.  But I would like to create a path to have more control.  Does anyone know of a good tutorial or how to achieve this?  Lot of actions came with the pathfinding eco system.  Not sure which ones to use.

Strangirs

  • Playmaker Newbie
  • *
  • Posts: 3
Re: NPC navmesh path
« Reply #1 on: July 02, 2023, 07:46:49 PM »
I don't know if this is correct, but it looks like you will need to download Pathfinding from the ecosystem. On NPC, I would use the action Set Agent Destination As Game Object and have empty game objects as the path where you want it to walk. I'd then use triggers to go to the next state and repeat until it gets to the location.

I've never done this just looking at the action descriptions that's what I would do. Let me know if it works!