Func tanktrain: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Cleanup)
No edit summary
Line 3: Line 3:
{{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.}}


{{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=tanktrain_8cpp-source.html hl2_dll\tanktrain.cpp}}


== Keyvalues ==
== Keyvalues ==

Revision as of 14:23, 2 August 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.