Ai debug nav: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
TomEdwards (talk | contribs) mNo edit summary  | 
				No edit summary  | 
				||
| (8 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{  | {{this is a|console command|name=ai_debug_nav}}  | ||
The <code>ai_debug_nav</code> console command is a debugging tool used to examine navigation problems in NPCs. When enabled, NPCs will report their navigation decision making process to the console. It's primarily a tool used by programmers to determine where navigation problems lie. Some familiarity with the AI navigation system is needed to make use of the output.  | The <code>ai_debug_nav</code> console command is a debugging tool used to examine navigation problems in NPCs. When enabled, NPCs will report their navigation decision making process to the console. It's primarily a tool used by programmers to determine where navigation problems lie. Some familiarity with the AI navigation system is needed to make use of the output.  | ||
| Line 11: | Line 10: | ||
* NPCs attempting to stop their movement.  | * NPCs attempting to stop their movement.  | ||
* NPCs jumping.  | * NPCs jumping.  | ||
* NPCs disabling collision with [[vphysics]] simulated entities.  | * NPCs disabling collision with [[VPhysics|vphysics]] simulated entities.  | ||
==Usage==  | ==Usage==  | ||
| Line 24: | Line 23: | ||
[[Category:Debugging]]  | [[Category:Debugging]]  | ||
[[Category:AI   | [[Category:AI commands]]  | ||
Latest revision as of 11:02, 30 June 2024
ai_debug_nav  is a   console command  available in all 
 Source games.
The ai_debug_nav console command is a debugging tool used to examine navigation problems in NPCs. When enabled, NPCs will report their navigation decision making process to the console. It's primarily a tool used by programmers to determine where navigation problems lie. Some familiarity with the AI navigation system is needed to make use of the output.
Example
Among other output, ai_debug_nav provides useful information for the following events:
- NPCs creating navigation goals. Provides a detailed breakdown of the goal parameters.
 - NPCs building routes, both succeeding & failing.
 - NPCs modifying their route while walking it, usually due to simplification.
 - NPCs attempting to stop their movement.
 - NPCs jumping.
 - NPCs disabling collision with vphysics simulated entities.
 
Usage
ai_debug_nav 1- Turns navigation debugging output on.
 
ai_debug_nav 0- Turns navigation debugging output off.