This article's documentation is for anything that uses the Source engine. Click here for more information.

Func traincontrols: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 1: Line 1:
{{subpage|[[Trains]]}}
{{subpage|[[Trains]]}}
{{This is a|name=func_traincontrols|e2}}
{{this is a|brush entity|name=func_traincontrols}}
{{code class|CFuncTrainControls|trains.cpp}}
{{code class|CFuncTrainControls|trains.cpp}}



Revision as of 17:01, 17 May 2024

func_traincontrols is a brush entity available in all Source Source games.

C++ In code, it is represented by theCFuncTrainControlsclass, defined in thetrains.cppfile.

Entity Description

When +used by the player, this entity gives control over the movement of a train using the player's movement keys.

KeyValues

Global:
Global Entity Name (globalname) <string>
Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.


Inputs

Outputs