npc_go

From Valve Developer Community
Jump to: navigation, search


The npc_go console command is a debugging tool that tells all selected NPCs to move to the point you are looking at. To select NPCs, use the npc_select command. Selected NPCs will draw arrows to the go point, and will continue to draw the arrow until they either reach the point, or determine that they are unable to navigate to the point.

NPCs attempting to move to points farther than the local navigation limit (600 units in HL2) will use the nodegraph to build a route to the point. As a result, npc_go is very useful for debugging both local movement and nodegraph related navigation problems. Commands to use in conjuction with it are: ai_debug_nav, ai_show_connect, npc_route, and ai_moveprobe_debug.

Usage

  • npc_go
    • Tell selected NPCs to move to the point you are looking at.


See also

ai_debug_nav, ai_show_connect, npc_route, ai_moveprobe_debug.