env_tram_screen

From Valve Developer Community
Jump to navigation Jump to search
Class hierarchy
CTramScreen
CVGuiScreen
CBaseEntity
Info target.png

env_tram_screen is a point entity available in Black Mesa Black Mesa. This entity creates the VGUI panel for train from Apprehension chapter. Created by prop_train_apprehension, but also can be used in Hammer Hammer.

The VGUI panel.

Keyvalues

Panel Name (panelname) <string>
Name of the panel to use. This is not a filename.
Overlay Material (overlaymaterial) <string> !FGD
Name of a material to overlay over the top of the VGUI screen.
Note.pngNote:This material must write Z for the VGUI screen to work.
Panel Width in World (width) <integer> !FGD
Width of the panel in units.
Panel Height in World (height) <integer> !FGD
Height of the panel in units.
Func Train To Trigger (functrainname) <targetname>
Determines the func_tracktrain that will affect the indicators on the screen. Doesn't work with other train entities.
Panel Name (panelname) <targetname>
Determines the prop that the screen will be attached to. It can be any target with model that have all the required attachment points.

Inputs

SetActive <void> !FGD
Activates screen.
SetInactive <void> !FGD
Deactivates screen.
attachscreen <void> !FGD
Fired on entity spawn to attach screen.