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

Ai changehintgroup: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
m (→‎Inputs: Substituted IO templates)
 
(30 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{wrongtitle|title=ai_changehintgroup}}
{{LanguageBar}}
 
{{CD|CAI_ChangeHintGroup|file1=triggers.cpp}}
==Entity Description==
{{this is a|point entity|name=ai_changehintgroup}}
[[Image:ai_changehintgroup.jpg|thumb|right|200px|An ''ai_changehintgroup'' entity.]]
It changes or adds a specific [[Hint_node#Hint_Group|hint group]] to an [[NPC]] or [[hint node]].
Changes or adds a specific [[Hint_node#Hint_Group|hint group]] to an NPC or hint node (see [[Hint nodes]]).


==Keyvalues==
==Keyvalues==
* {{KV Targetname}}
{{KV Targetname}}
*'''SearchType'''
{{KV|Name to search for|intn=SearchName|target_name_or_class|A targetname, classname, or name of a hint group.}}
: <choices> Search Type - How to search for the entities to change.
{{KV|Search Type|intn=SearchType|choices|How to search for the entities to change.
:{|
:*0: Entity Name
! Literal Value || Description
:*1: Classname
|-
:*2: Old Hint Group}}
| 0 || Entity Name
{{KV|Search Radius|intn=Radius|float|Radius to search (0 searches entire map).}}
|-
{{KV|New Hint Group|intn=NewHintGroup|string|New hint group to add to the entities meeting search criteria.}}
| 1 || Classname
{{KV|Hint Limit Nav|intn=hintlimiting|bool|Limits NPC to using specified hint group for navigation requests, does not limit local navigation.}}
|-
| 2 || Old Hint Group
|}
*'''Radius'''
: <float> Search Radius - Radius to search. (0 for map extents.)
*'''hintlimiting'''
: {{boolean}} Hint Limit Nav - Limits NPC to using specified hint group for navigation requests, does not limit local navigation.
*'''SearchName'''
: <target_name_or_class> Name to search for
*'''[[Hint_node#Hint_Group|NewHintGroup]]'''
: <string> New Hint Group


<!--This entity doesn't have any flags.-->
==Inputs==
==Inputs==
* {{I Targetname}}
{{I|Activate|Change the hint group.}}
* '''Activate'''
: Change the [[Hint_node#Hint_Group|hint group]]


==Outputs==
* {{o targetname}}


[[Category:Entities]]
[[Category:AI]]

Latest revision as of 08:46, 21 April 2025

English (en)Translate (Translate)
C++ Class hierarchy
CAI_ChangeHintGroup
CBaseEntity
C++ triggers.cpp

ai_changehintgroup is a point entity available in all Source Source games. It changes or adds a specific hint group to an NPC or hint node.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Name to search for (SearchName) <target_name_or_class>
A targetname, classname, or name of a hint group.
Search Type (SearchType) <choices>
How to search for the entities to change.
  • 0: Entity Name
  • 1: Classname
  • 2: Old Hint Group
Search Radius (Radius) <float>
Radius to search (0 searches entire map).
New Hint Group (NewHintGroup) <string>
New hint group to add to the entities meeting search criteria.
Hint Limit Nav (hintlimiting) <boolean>
Limits NPC to using specified hint group for navigation requests, does not limit local navigation.

Inputs

Activate
Change the hint group.