Func tanktrain

From Valve Developer Community
Revision as of 17:40, 2 June 2015 by BitMage (talk | contribs) (I had to read the code to figure out my map didn't work. Frustrating...)
Jump to navigation Jump to search

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.
Tip.pngTip:Increase the Distance Between the Wheels keyvalue for smoother turns.

Template:In code

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 talk page)  [todo tested in ?]

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.
Icon-Bug.pngBug:This entity can never die without code modification. (See talk page)  [todo tested in ?]

Template:O BaseTrain