Ai changetarget

From Valve Developer Community
Revision as of 00:13, 14 September 2018 by Ficool2 (talk | contribs) (It literally changes the target keyvalue, so any entity can be used)
Jump to navigation Jump to search
English (en)Translate (Translate)

Template:Base point 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.

C++ In code, it is represented by theCAI_ChangeTargetclass, defined in thetriggers.cppfile.

Keyvalues

Target (target) ([todo internal name (i)]) <targetname>
Entity(s) that should have target changed.
NewTarget (m_iszNewTarget) ([todo internal name (i)]) <targetname>
New targetname for the targeted entity(s) to target.


Inputs

Activate
Trigger the target change.


Outputs