Func trackchange: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Add internal name of Minimum Light Level)
(Template:in code -> Template:code class.)
Line 1: Line 1:
{{base brush|func_trackchange}}  
{{base brush|func_trackchange}}  
{{code class|CFuncTrackChange|trains.cpp}}


==Entity description==
== Entity description ==
It works as a rotating/moving platform that will carry a train 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.  
It works as a rotating/moving platform that will carry a {{ent|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.  


{{in code|class=class_c_func_track_change.html CFuncTrackChange|file=trains_8cpp-source.html trains.cpp}}
As opposed to {{ent|func_trackautochange}}, this entity does not have a <code>Trigger</code> input.


==Keyvalues==
== KeyValues ==
{{KV Trackchange}}
{{KV|Minimum Light Level|intn=_minlight|string|The minimum level of ambient light that hits this brush.}}
{{KV|Minimum Light Level|intn=_minlight|string|The minimum level of ambient light that hits this brush.}}
{{KV Trackchange}}


==Flags==
== Flags ==
{{Fl Trackchange}}
{{Fl Trackchange}}


==Inputs==
== Inputs ==
{{I Trackchange}}
{{I Trackchange}}


==Outputs==
== Outputs ==
{{O Trackchange}}
{{O Trackchange}}


== See also ==
== See also ==
* [[func_trackautochange]]
* {{ent|func_trackautochange}}

Revision as of 10:52, 15 May 2022

Template:Base brush

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

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.

As opposed to func_trackautochange, this entity does not have a Trigger input.

KeyValues

Template:KV Trackchange

Minimum Light Level (_minlight) <string>
The minimum level of ambient light that hits this brush.

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

Template:I Trackchange

Outputs

Template:O Trackchange

See also