Ai changetarget: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Technical limitations)
Line 1: Line 1:
{{wrongtitle|title=ai_changetarget}}
{{wrongtitle|title=ai_changetarget}}


{{stub}}
==Entity Description==
==Entity Description==
Changes the '''target''' keyvalue of an entity. Note that the keyvalue must actually be 'target': disable SmartEdit (Alt+S) to see if the entity has one. NPCs do not, so ai_changetarget cannot be used to make them shoot at particular objects. Use [[ai_relationship]] instead. On the other hand trigger_teleports have a '''target''' keyvalue governing destination, and this entity can be used to change it.
Changes the target of an entity.
==Keyvalues==
* {{kv targetname}}
* '''target'''
: <target_destination> Entity to change the target for
* '''m_iszNewTarget'''
: <target_destination> New target's targetname
 
==Inputs==
* {{i targetname}}
* '''Activate'''
: Trigger the target change
==Outputs==
* {{o targetname}}


[[Category:AI]]
[[Category:AI]]
[[Category:Entities]]
[[Category:Entities]]
{{stub}}

Revision as of 08:13, 5 October 2005

Template:Wrongtitle

Stub

This article or section is a stub. You can help by expanding it.

Entity Description

Changes the target of an entity.

Keyvalues

<target_destination> Entity to change the target for
  • m_iszNewTarget
<target_destination> New target's targetname

Inputs

Trigger the target change

Outputs