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.
m (Added tip about turning) |
(I had to read the code to figure out my map didn't work. Frustrating...) |
||
Line 5: | Line 5: | ||
{{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}} | ||
:{{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 talk page)}} | |||
== Keyvalues == | == Keyvalues == | ||
Line 18: | Line 19: | ||
== Outputs == | == Outputs == | ||
{{IO|OnDeath|Fired when the tank is killed.}} | {{IO|OnDeath|Fired when the tank is killed.}} | ||
:{{bug|This entity can never die without code modification. (See talk page)}} | |||
{{O BaseTrain}} | {{O BaseTrain}} |
Revision as of 17:40, 2 June 2015
Template:Base brush It is a moving train that follows a path of path_track entities, shoots at the player, and can be killed.


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 talk page) [todo tested in ?]
Keyvalues
Flags
Inputs
Outputs
- OnDeath
- Fired when the tank is killed.
Bug:This entity can never die without code modification. (See talk page) [todo tested in ?]