Triggering an NPC to attack

W

WW2dude

Guest
I'm a noob to HL2 mapping, but i can do basic things(create walls, props with physics/static).

But I need help with getting a fast zombie to run around a corner and attack the player when a trigger is activated. If someone can explain the steps, i'd be very grateful.
 
First you need to have info_node entities placed around the map, consider them a network of where AI's can move, to construct a network properly each node should be able to "see" the nodes you want connected. To get the monster to move around the corner based on a trigger I'd lay the info_nodes and then put a path_corner entity near where I wanted the monster to run to. Then when I created the monster I'd set it's sleep state to await input, and it's target path corner to the path corner I want it to run to. On the trigger I'd set a connection to the zombie that used the zombie's "wake" input. That should wake the zombie and have it run around the corner, just be sure there is no way around the trigger.
 
Back
Top