Env tram screen: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{CDA|CTramScreen|CVGuiScreen|CBaseEntity|}}
{{this is a|point entity|name=env_tram_screen|game=Black Mesa|sprite=Info_target.png}} This entity creates the [[VGUI]] panel for train from ''Apprehension'' chapter. Created by {{ent|prop_train_apprehension}}, but also can be used in {{Hammer|4}}.
{{this is a|point entity|name=env_tram_screen|game=Black Mesa|sprite=Info_target.png}} This entity creates the [[VGUI]] panel for train from ''Apprehension'' chapter. Created by {{ent|prop_train_apprehension}}, but also can be used in {{Hammer|4}}.
Represented by class <code>CTramScreen</code>.


[[File:env_tram_screen_Panel.jpg|thumb|The VGUI panel.]]
[[File:env_tram_screen_Panel.jpg|thumb|The VGUI panel.]]

Revision as of 00:18, 27 May 2025

C++ 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

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Panel Name (panelname) <string> Obsolete
Deprecated.
This property should use specified VGUI panel, but it always use the default panel.
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.