Func tracktrain: Difference between revisions
Karl-police (talk | contribs) (Those links do no longer work, so I hide them.) |
|||
Line 4: | Line 4: | ||
{{note|Unless the ''Fixed Orientation'' flag is set, build your train so that the front of the train is facing down the X axis. (This means that the front of the train is visible in the front view, etc..) When it spawns it will automatically rotate to face the next <code>path_track</code> on the path.}} | {{note|Unless the ''Fixed Orientation'' flag is set, build your train so that the front of the train is facing down the X axis. (This means that the front of the train is visible in the front view, etc..) When it spawns it will automatically rotate to face the next <code>path_track</code> on the path.}} | ||
{{in code|class=class_c_func_track_train.html CFuncTrackTrain|file=trains_8cpp-source.html trains.cpp}} | <!-- {{in code|class=class_c_func_track_train.html CFuncTrackTrain|file=trains_8cpp-source.html trains.cpp}} --> | ||
== Keyvalues == | == Keyvalues == |
Revision as of 13:54, 3 August 2018
Template:Base brush It functions as a moving platform that the player can ride. It follows a path of path_track entities.


path_track
on the path.
Keyvalues
Distance between wheels is the distance in Hammer Units between the front axle and rear axle of your train. The rear axle moves the train and stays on the track. The front axle turns as it approaches path_tracks and does not stay on the track.
Flags
Inputs
Backward movement
Due to coding errors or engine limitations, the Reverse and StartBackward may not function correctly if the "New Train Speed" property in the involved path_track entities is set to 0. The train may fail to reverse, jamming in place or moving in the wrong direction. To solve this issue, some or all of the path_tracks
must have their "New Train Speed" variable set to a nonzero value.