Func train

From Valve Developer Community
Revision as of 20:56, 16 April 2006 by Ts2do (talk | contribs)
Jump to navigation Jump to search
Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.

Entity Description

FGD Code

@SolidClass base(Targetname, Origin, RenderFields) = func_train
[
	spawnflags(flags) =
	[
		8 : "Non-solid" : 0
	]
	texframeindex(integer) : "Initial Brush Frame Index" : : "Use this to set the initial frame of materials with multiple frames in the brush"
	target(target_destination) : "First path_corner"
	noise1(sound) : "Movement Sound" : : "The sound to play when the train moves."
	noise2(sound) : "Stop Sound" : : "The sound to play when the train stops moving."
	speed(float) : "Speed" : "50.000000" : "Speed at which the brush moves."
	volume(float) : "Sound volume [0.0, 10.0]" : "0.000000"
	dmg(float) : "Crush Damage" : "0.000000"
	input Toggle(void) : "Toggle movement"
	input Start(void) : "Start movement"
	input Stop(void) : "Stop movement"
	input Use(void) : "Toggle movement - has a different functionality than Toggle"
]

Keyvalues

<integer> Use this to set the initial frame of materials with multiple frames in the brush
  • target
<target_destination> First path_corner
  • noise1
<sound> The sound to play when the train moves.
  • noise2
<sound> The sound to play when the train stops moving.
  • speed
<float> Speed at which the brush moves.
  • volume
<float> Sound volume 0.0 to 10.0
  • dmg
<float> Crush Damage

Flags

  • 8 : Non-solid

Inputs

Toggle movement
  • Start
Start movement
  • Stop
Stop movement
  • Use
Toggle movement - has a different functionality than Toggle

Outputs