Func tanktrain: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=func_tanktrain}}
{{base brush|func_tanktrain}} It is a moving train that follows a path of [[path_track]] entities, shoots at the player, and can be killed.
{{base_brush}}
 
==Entity Description==
A moving train that follows a path of [[path_track]] entities, shoots at the player, and can be killed.
 
{{brushmodel}}


{{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.}}
{{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.}}
Line 11: Line 5:
{{in code|class=class_c_func_tank_train.html CFuncTankTrain|file=func__tank_8cpp-source.html hl2_dll\func_tank.cpp}}
{{in code|class=class_c_func_tank_train.html CFuncTankTrain|file=func__tank_8cpp-source.html hl2_dll\func_tank.cpp}}


==Keyvalues==
== Keyvalues ==
*{{KV BaseTrain}}
{{KV|Health|integer|Health of the tank.}}
*'''health'''
{{KV BaseTrain}}
:<integer> Health.


==Flags==
== Flags ==
*{{Fl BaseTrain}}
{{Fl BaseTrain}}


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


==Outputs==
== Outputs ==
*{{Template:O basetrain}}
{{IO|OnDeath|Fired when the tank is killed.}}
*'''OnDeath'''
:Fired when the tank is killed.

Revision as of 10:39, 25 July 2011

Template:Base brush It is a moving train that follows a path of path_track entities, shoots at the player, and can be killed.

Note.pngNote: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.

Template:In code

Keyvalues

Health ([todo internal name (i)]) <integer>
Health of the tank.

Template:KV BaseTrain

Flags

Template:Fl BaseTrain

Inputs

Template:I BaseTrain

Outputs

OnDeath
Fired when the tank is killed.