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

Tanktrain ai: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 1: Line 1:
{{this is a|e0|name=tanktrain_ai}} This is AI to make an associated [[func_tanktrain]] automatically move along its path towards the node closest to a target.
{{this is a|point entity|name=tanktrain_ai}} This is AI to make an associated [[func_tanktrain]] automatically move along its path towards the node closest to a target.
{{bug|The train won't move any faster than 1 unit per second due to coding mistakes.}}
{{bug|The train won't move any faster than 1 unit per second due to coding mistakes.}}



Revision as of 16:47, 17 May 2024

tanktrain_ai is a point entity available in all Source Source games. This is AI to make an associated func_tanktrain automatically move along its path towards the node closest to a target.

Icon-Bug.pngBug:The train won't move any faster than 1 unit per second due to coding mistakes.  [todo tested in ?]

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>
The engine sound is looped when it plays
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