Post tutorial RSS Willgames' NPC Level Based Paths

How do you make paths for NPCs to walk in, in the Hammer editor? This article answers that question!

Posted by on - Basic Level Design/Theory

First make your map, which is kind of obvious how to do if youre at this point, now place down your NPCs, create something that can activate the NPCs to even follow the path, whether it be right when the game starts or something like a trigger or a func_button. Now add path_corners, they are entities that define points where the NPCs walk now add them along your path, now tell each node to go to the other node, then give them names so its much easier to reference them in the outputs. Now just set it up to where your NPC goes to the points (ie: given a name, told to do so by some other entity) and that's pretty much it, your npc can now follow paths you lay out, this is good for patrolling NPCs and much other stuff.

Path corner.png

For more information on the path_corner entity go here: Developer.valvesoftware.com

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.