Ai changetarget: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(It literally changes the target keyvalue, so any entity can be used)
m (.)
Line 17: Line 17:


[[Category:AI]]
[[Category:AI]]
[[Category:Half-Life 2 Entities]]
[[Category:Alien Swarm Entities]]

Revision as of 01:15, 15 September 2018

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