Ai changetarget: Difference between revisions
Jump to navigation
Jump to search

mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{lang| | {{lang|title=ai_changetarget}} | ||
{{CD|CAI_ChangeTarget|file1=triggers.cpp}} | {{CD|CAI_ChangeTarget|file1=triggers.cpp}} | ||
{{ | {{entity|ai_changetarget|type=e0}} It's main use is for changing the <code>target</code> keyvalue of NPCs, but it can change the target of any entity if applicable. This task can also be done using {{ent|mode=link|AddOutput}}. | ||
{{code class|CAI_ChangeTarget|triggers.cpp}} | {{code class|CAI_ChangeTarget|triggers.cpp}} |
Revision as of 06:56, 8 February 2023


![]() |
---|
CAI_ChangeTarget |
![]() |
Template:Entity 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.
Keyvalues
- Target (target) <targetname>
- Entity(s) that should have
target
changed.
- NewTarget (m_iszNewTarget) <targetname>
- New
targetname
for the targeted entity(s) to target.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- Activate
- Trigger the target change.