This article's documentation is for anything that uses the Source engine. Click here for more information.

Tanktrain aitarget: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
No edit summary
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{wrongtitle|title=tanktrain_aitarget}}
{{LanguageBar}}
{{base_point_legacy|ai_changetarget}}
{{CD|CTankTargetChange|file1=1}}
==Entity Description==
{{This is a|point entity|name=tanktrain_aitarget}} An entity that changes the target of a {{ent|tanktrain_ai}} entity.
An entity that changes the target of a [[tanktrain_ai]] entity.


This entity is '''deprecated'''. Use [[ai_changetarget]] instead.
== Keyvalues ==
{{KV Targetname}}
{{KV|Tank AI Entity|intn=target|string|The tanktrain_ai entity to change the target of.}}
{{KV|New Target Entity|intn=newtarget|string|The entity to tell the tanktrain_ai to target.}}


==Keyvalues==
== Input ==
*{{KV Targetname}}
{{I|Use|param=void|nofgd=1|Will call the <code>TargetEntity</code> input with value of <code>newtarget</code> on the targetted entity/ies.}}
*'''target'''
: <target_destination> The [[tanktrain_ai]] entity to change the target of.
*'''newtarget'''
: <target_destination> The entity to tell the [[tanktrain_ai]] to target.


==Inputs==
== See also ==
*{{I Targetname}}
* {{ent|tanktrain_ai}}
 
==Outputs==
*{{o targetname}}

Latest revision as of 02:55, 6 June 2025

English (en)Translate (Translate)
C++ Class hierarchy
CTankTargetChange
CPointEntity
CBaseEntity
C++ tanktrain.cpp

tanktrain_aitarget is a point entity available in all Source Source games. An entity that changes the target of a tanktrain_ai entity.

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

Tank AI Entity (target) <string>
The tanktrain_ai entity to change the target of.
New Target Entity (newtarget) <string>
The entity to tell the tanktrain_ai to target.

Input

Use <void> !FGD
Will call the TargetEntity input with value of newtarget on the targetted entity/ies.

See also