func_train
This entity is not in the stock FGD files by default.
|
Code classes:
CFuncTrain
CBasePlatTrain
CBaseToggle
CBaseEntity
(all ents)
func_train
is a brush entity present in all Source games. It moves along a set of path_track
s. It was replaced with func_tracktrain
in Half-Life, but this entity is still useful because it doesn't suffer some of that entity's bugs.
FGD Code[edit | edit source]
[ spawnflags(flags) = [ 8 : "Not Solid" : 0 ] target(target_destination) : "Target Track" : : "Name of a path_track to move towards. The brush will teleport to this entity upon spawning. If changed with AddOutput, it will move towards that entity instead, but the effect will only take place once the entity reaches its current target or is sent the Stop input, sent AddOutput, then Started again." dmg(integer) : "Blocking Damage" : -1 : "How much damage to do to players that block the brush. Set to -1 to not do any damage." speed(float) : "Speed" : 100 : "How many units per second to move." noise1(sound) : "Start/Movement Sound" : : "The sound to play when the brush moves." noise2(sound) : "Stop Sound" : : "The sound to play when the brush stops moving." volume(integer) : "Sound Volume" : 1 : "How loud the sounds are from 0.0 (quietest) to 1.0 (loudest)." input Start(void) : "Makes the entity start moving." input Stop(void) : "Makes the entity stop moving." input Toggle(void) : "If off, turn on. If on, turn off." ]
Flags[edit | edit source]
- 8: Not Solid
Keyvalues[edit | edit source]
- Target Track
(target)
<target_destination>
- Name of a
path_track
to move towards. The brush will teleport to this entity upon spawning. If changed with AddOutput, it will move towards that entity instead, but the effect will only take place once the entity reaches its current target or is set the Stop input, sent AddOutput, then Started again. - Blocking Damage
(dmg)
<integer>
- How much damage to do to players that block the brush. Set to -1 to not do any damage.
- Speed
(speed)
<float>
- How many units per second to move.
Inputs[edit | edit source]
- Start
- Makes the entity start moving.
- Stop
- Makes the entity stop moving.
- Toggle
- If on, turn off. If off, turn on.