Npc go: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{Console Command|AI Commands}} | ||
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. | ||
Line 15: | Line 14: | ||
[[Category:Debugging]] | [[Category:Debugging]] | ||
Revision as of 13:12, 28 June 2023
Template:Console Command
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.