Ai changetarget: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(IO wikicode updated)
Line 8: Line 8:


== Keyvalues ==
== Keyvalues ==
* {{KV Targetname}}
{{KV Targetname}}
* '''target'''
{{KV|Target|target_destination|Entity to change the target for.}}
: <target_destination> Entity to change the target for
{{KV|NewTarget|target_destination|New target's targetname.}}
* '''m_iszNewTarget'''
: <target_destination> New target's targetname


== Inputs ==
== Inputs ==
* {{I Targetname}}
{{I Targetname}}
* '''Activate'''
{{IO|Activate|Trigger the target change.}}
: Trigger the target change


== Outputs ==
== Outputs ==
* {{O Targetname}}
{{O Targetname}}


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

Revision as of 16:13, 3 February 2012

Template:Hl2 point

Entity description

Changes the target of an entity.

Note.pngNote:This entity functions as a target changer for any entity and not just NPCs.

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

Target ([todo internal name (i)]) <targetname>
Entity to change the target for.
NewTarget ([todo internal name (i)]) <targetname>
New target's targetname.

Inputs

Activate
Trigger the target change.

Outputs