Tanktrain ai: Difference between revisions
Jump to navigation
Jump to search
Bug:The train won't move any faster than 1 unit per second due to coding mistakes. [todo tested in ?]
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
m (provided names for keys not having them) |
||
Line 3: | Line 3: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Train Name|target_destination|The func_tanktrain to move}} | {{KV|Train Name|intn=target|target_destination|The func_tanktrain to move}} | ||
{{KV|Start Moving Sound|sound|The sound to play when the train starts moving}} | {{KV|Start Moving Sound|intn=startsound|sound|The sound to play when the train starts moving}} | ||
{{KV|Engine Loop Sound|sound|The engine sound is looped when it plays}} | {{KV|Engine Loop Sound|intn=enginesound|sound|The engine sound is looped when it plays}} | ||
{{KV|Vehicle Movement Sound|sound|The looping sound to play while the train is moving}} | {{KV|Vehicle Movement Sound|intn=movementsound|sound|The looping sound to play while the train is moving}} | ||
{{KV Targetname}} | {{KV Targetname}} | ||
Revision as of 11:11, 9 July 2024
tanktrain_ai
is a point entity available in all Source games. This is AI to make an associated func_tanktrain automatically move along its path towards the node closest to a target.

Keyvalues
- Train Name (target) <targetname>
- The func_tanktrain to move
- Start Moving Sound (startsound) <sound>
- The sound to play when the train starts moving
- Engine Loop Sound (enginesound) <sound>
- The engine sound is looped when it plays
- Vehicle Movement Sound (movementsound) <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
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities