ai_changetarget
Jump to navigation
Jump to search
| CAI_ChangeTarget |
ai_changetarget is a logical entity available in all
Source games. It's main use is for changing the target keyvalue of NPCs, but it can change the target of any entity if applicable. This task can also be done using AddOutput (but that might not update the NPC's target properly[confirm]).
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Target (target) <targetname>
- Entity(s) that should have
targetchanged.
- NewTarget (m_iszNewTarget) <targetname>
- New
targetnamefor the targeted entity(s) to target.
Inputs
- Activate
- Trigger the target change.