This article's documentation is for anything that uses the Source engine. Click here for more information.

Npc go: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Replacing {{console command}}. This operation was performed by a bot.)
Line 1: Line 1:
{{Console command|AI commands}}
{{this is a|console command|name=npc_go}}
The <code>npc_go</code> 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.  
The <code>npc_go</code> 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.  



Revision as of 17:44, 7 January 2024

npc_go is a console command available in all Source Source games. 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.