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

Func tanktrain: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
m (→‎Outputs: Substituted IO templates)
 
(16 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{wrongtitle|title=func_tanktrain}}
{{distinguish|func_tracktrain}}
{{base_brush}}
{{CD|CFuncTankTrain|file1=1}}
{{this is a|brush entity|name=func_tanktrain}} It was meant to be a train that follows a target entity (such as the player). It was never finished and doesn't work correctly.


==Entity Description==
It was meant to be used in combination with a {{ent|tanktrain_ai}} entity.  
A moving train that follows a path of [[path_track]] entities, shoots at the player, and can be killed.


{{brushmodel}}
:{{bug|This entity has a hard-coded damage filter and will never die as is not properly configured to take damage in the first place. See the [[Talk:{{PAGENAME}}|talk page]].}}


{{note|Build your train so that the front of the train is facing down the X axis. When it spawns it will automatically rotate to face the next [[path_track]] on the path.}}
== Keyvalues ==
{{KV Targetname}}
{{KV|Health|intn=health|integer|Health of the tank.}}


{{in code|class=class_c_func_tank_train.html CFuncTankTrain|file=func__tank_8cpp-source.html hl2_dll\func_tank.cpp}}
== Outputs ==
{{O|OnDeath|Fired when the tank is killed.}}
:{{bug|This entity can never die without code modification. (See talk page)}}


==Keyvalues==
*{{KV BaseTrain}}
*'''health'''
:<integer> Health.


==Flags==
{{OtherKIO|func_tracktrain}}
*{{Fl BaseTrain}}


==Inputs==
*{{I BaseTrain}}


==Outputs==
== See Also ==
*{{Template:O basetrain}}
* {{ent|func_tracktrain}}
*'''OnDeath'''
:Fired when the tank is killed.

Latest revision as of 21:46, 19 April 2025

Not to be confused with func_tracktrain.
C++ Class hierarchy
CFuncTankTrain
CFuncTrackTrain
CBaseEntity
C++ tanktrain.cpp

func_tanktrain is a brush entity available in all Source Source games. It was meant to be a train that follows a target entity (such as the player). It was never finished and doesn't work correctly.

It was meant to be used in combination with a tanktrain_ai entity.

Icon-Bug.pngBug:This entity has a hard-coded damage filter and will never die as is not properly configured to take damage in the first place. See the talk page.  [todo tested in ?]

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

Health (health) <integer>
Health of the tank.

Outputs

OnDeath
Fired when the tank is killed.
Icon-Bug.pngBug:This entity can never die without code modification. (See talk page)  [todo tested in ?]


Note.pngNote:Other Keyvalues / Inputs / Outputs are same as func_tracktrain.


See Also