Func tanktrain: Difference between revisions
Jump to navigation
Jump to search
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.
Tip:Increase the Distance Between the Wheels keyvalue for smoother turns.
No edit summary |
m (Added tip about turning) |
||
Line 1: | Line 1: | ||
{{base brush|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. | ||
It is a moving train that follows a path of [[path_track]] entities, shoots at the player, and can be killed. | |||
{{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.}} | ||
{{tip|Increase the '''Distance Between the Wheels''' keyvalue for smoother turns.}} | |||
{{in code|class=class_c_func_tank_train.html CFuncTankTrain|file=tanktrain_8cpp-source.html hl2_dll\tanktrain.cpp}} | {{in code|class=class_c_func_tank_train.html CFuncTankTrain|file=tanktrain_8cpp-source.html hl2_dll\tanktrain.cpp}} |
Revision as of 09:10, 23 July 2012
Template:Base brush It is a moving train that follows a path of path_track entities, shoots at the player, and can be killed.


Keyvalues
Flags
Inputs
Outputs
- OnDeath
- Fired when the tank is killed.