Npc viewcone: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Fixed link.)
No edit summary
Line 1: Line 1:
{{Console Command|AI Commands}}
[[Image:npc_viewcone.png|thumb|The npc_viewcone of this [[npc_zombie]] makes it clear that the player is currently outside its [[Field of View]].]]
[[Image:npc_viewcone.png|thumb|The npc_viewcone of this [[npc_zombie]] makes it clear that the player is currently outside its [[Field of View]].]]


Line 18: Line 19:
*[[NPC_Sensing]]
*[[NPC_Sensing]]
*[[Talk:NPC_Sensing]]
*[[Talk:NPC_Sensing]]
[[Category:Console Commands]]

Revision as of 16:11, 28 June 2023

Template:Console Command

The npc_viewcone of this npc_zombie makes it clear that the player is currently outside its Field of View.

A console command that will display NPC fields of view. Two big red arrows will indicate the boundaries of the FOV (the horizontal boundaries of its viewcone), while a thinner yellow arrow indicates its Angle (where the NPC is facing).

This command takes an <npc_targetname> or an <npc_classname> as its argument. If no argument is specified, it picks the NPC that the player is looking at (through the crosshair !picker).

Note.pngNote:Despite its name, this command does not actually portray a viewcone, most importantly because it doesn't indicate how far the NPC can see.

This Console command requires sv_cheats set to 1 and then developer set to 1.


See also