Tanktrain ai: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{base point|tanktrain_ai}} Train chase AI {{clarify}}.
{{base point|tanktrain_ai}} This is AI to make an associated func_tanktrain automatically move along its path towards the node closest to a target.


== Keyvalues ==
== Keyvalues ==
{{KV|Train Name|target_destination}}
{{KV|Train Name|target_destination|The func_tanktrain to move}}
{{KV|Start Moving Sound|sound}}
{{KV|Start Moving Sound|sound|The sound to play when the train starts moving}}
{{KV|Engine Loop Sound|sound}}
{{KV|Engine Loop Sound|sound}}
{{KV|Vehicle Movement Sound|sound}}
{{KV|Vehicle Movement Sound|sound|The looping sound to play while the train is moving}}
{{KV Targetname}}
{{KV Targetname}}


== Inputs ==
== Inputs ==
{{I Targetname}}
{{I Targetname}}
{{IO|TargetEntity|Start chasing the entity with this name|param=string|nofgd=1}}


== Outputs ==
== Outputs ==

Revision as of 06:21, 3 August 2011

Template:Base point This is AI to make an associated func_tanktrain automatically move along its path towards the node closest to a target.

Keyvalues

Train Name ([todo internal name (i)]) <targetname>
The func_tanktrain to move
Start Moving Sound ([todo internal name (i)]) <sound>
The sound to play when the train starts moving
Engine Loop Sound ([todo internal name (i)]) <sound>
Vehicle Movement Sound ([todo internal name (i)]) <sound>
The looping sound to play while the train is moving
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

Inputs

TargetEntity <stringRedirectInput/string> !FGD
Start chasing the entity with this name

Outputs