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

Func trackautochange: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{tabs|func_trackautochange|goldsrc=1|source=1|main=source}}
{{tabs|func_trackautochange|goldsrc=1|source=1|main=source}}
{{CD|CFuncTrackAuto|file1=trains.cpp}}
{{toc-right}}
{{this is a|brush entity|name=func_trackautochange}}
{{this is a|brush entity|name=func_trackautochange}}


Line 6: Line 8:


Unlike {{ent|func_trackchange}}, this entity does have a <code>Trigger</code> input.
Unlike {{ent|func_trackchange}}, this entity does have a <code>Trigger</code> input.
{{code class|CFuncTrackAuto|trains.cpp}}


== Keyvalues ==
== Keyvalues ==
{{Brush rendering note}}
{{KV Targetname}}
{{KV Trackchange}}
{{KV Trackchange}}


Line 16: Line 20:
== Inputs ==
== Inputs ==
{{IO|Trigger|Trigger the track change.}}
{{IO|Trigger|Trigger the track change.}}
{{I visiblebrush|portal2=1}}
== Outputs ==
{{O BaseEntity|l4d=1}}


== See also ==
== See also ==
* {{ent|func_trackchange}}
* {{ent|func_trackchange}}

Revision as of 01:26, 3 September 2024

C++ Class hierarchy
CFuncTrackAuto
CFuncTrackChange
CFuncPlatRot
CFuncPlat
CBasePlatTrain
CBaseToggle
CBaseEntity
C++ trains.cpp

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

Entity Description

It works as a rotating/moving platform that will carry a func_tracktrain to a new track. It must be larger in X-Y planar area than the train, since it must contain the train within these dimensions in order to operate when the train is near it.

Unlike func_trackchange, this entity does have a Trigger input.

Keyvalues

Note.pngNote:For Keyvalues and Inputs affecting brush rendering, see Brush entity/Rendering related keyvalues and inputs


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

Template:KV Trackchange

Flags

Auto Activate train : [1]
Relink track : [2]
Start at Bottom : [8]
Platform starts at the bottom track instead of the top one.
Rotate Only : [16]
X Axis : [64]
Train rotates around the X-axis instead of the Z-axis. Can be combined with Y Axis.
Y Axis : [128]
Train rotates around the Y-axis instead of the Z-axis. Can be combined with X Axis.

Inputs

Trigger
Trigger the track change.

See also