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

ai_hint

From Valve Developer Community
Revision as of 12:43, 11 July 2024 by MyGamepedia (talk | contribs) (All the info is from here https://src-ents.shoutwiki.com/wiki/Ai_hint)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.
C++ Class hierarchy
CAI_Hint
CServerOnlyEntity
CBaseEntity
C++ ai_hint.cpp

ai_hint is a point entity available in all Source Source games except Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. When an info_hint, info_node_hint or info_node_air_hint has a Hint (hinttype) other than None, this entity will be created in place of it and retain much of the former entity's data, including targetname and IO.

ConVars/Commands

Cvar/Command Parameters or default value Descriptor Effect
ai_drop_hint int Hint Type Creates an ai_hint with the origin and angles of the player camera. If no number is included, it prints a list of valid types.

Keyvalues

Node FOV (nodeFOV) <float>
In order for an NPC to use this node, the NPC must be within the node's FOV (which is centered on the Pitch Yaw Roll (angles)). Any number may be entered. 360 means any angle is acceptable.


Inputs

EnableHint
Enables the hint.
DisableHint
Disables the hint.


Inputs

OnNPCStartedUsing <void>
Fired when an NPC starts using this hint node as part of an actbusy. Automatically puts the targetname of the NPC as the input parameter, unless overridden by the mapper..
OnNPCStoppedUsing <void>
Fired when an NPC stops using this hint node as part of an actbusy. Automatically puts the targetname of the NPC as the input parameter, unless overridden by the mapper.