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

Npc viewcone: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with 'thumb|The npc_viewcone of this [[npc_zombie makes it clear that the player is currently outside its viewcone.]] A console co…')
 
(Undo revision 453623 by Gameplayer (talk))
Tag: Undo
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Image:npc_viewcone.png|thumb|The npc_viewcone of this [[npc_zombie]] makes it clear that the player is currently outside its [[viewcone]].]]
{{this is a|console command|name=npc_viewcone}}
[[File:npc_viewcone.png|thumb|The npc_viewcone of this [[npc_zombie]] makes it clear that the player is currently outside its [[Field of View]].]]


A [[Developer Console|console]] command that will display [[viewcone]]s of [[NPC]]s.
A [[Developer Console|console]] command that will display [[NPC FOV|NPC fields of view]].
Two big red arrows indicate the boundaries of the viewcone, while a thinner yellow arrow indicates where the NPC is looking.
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 (the crosshair [[!picker]]).
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|This command does not indicate how ''far'' the NPC can see.}}
{{note|Despite its name, this command does not actually portray a viewcone, most importantly because it doesn't indicate how ''far'' the NPC can see.}}


{{-dev}}
{{devreq}}




Line 15: Line 16:
*[[NPC_FOV]]
*[[NPC_FOV]]
*[[FOV]]
*[[FOV]]
*[[LOS]]
*[[Line of sight]]
*[[NPC_Sensing]]
*[[NPC_Sensing]]
*[[Talk:NPC_Sensing]]
*[[Talk:NPC_Sensing]]
[[Category:Console Commands]]

Latest revision as of 09:14, 17 September 2024

npc_viewcone is a console command available in all Source Source games.

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.
Note.pngNote:The game must be in Developer mode for this command to work properly.


See also