Template:Archived Page History/Template:I BaseTrain: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (disclaimer for teleporttopathnode on csgo)
Tag: Removed redirect
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ScrollBox|title=BaseTrain|
{{APH|}}
{{IO|SetSpeed|Set the speed of the train, as a ratio of max speed [0, 1]|param=float}}
{{IO|SetSpeedDir|Set the speed of the train, as a ratio of max speed. Negative values reverse the direction [-1, 1]|param=float}}
{{IO|SetSpeedReal|Set the speed of the train. Must be a positive value from 0 to max speed.|param=float}}
{{IO|SetSpeedDirAccel|Accel/Decel to the specified speed, as a ratio of max speed. Negative values reverse the direction [-1, 1]|param=float}}
{{IO|SetSpeedForwardModifier|Applies the given modifier to all forward speeds. [0, 1]|param=float}}
{{IO|TeleportToPathTrack|Teleport the train to the designated path track.|param=targetname}}
{{Note | In {{csgo}} <code>TeleportToPathTrack</code> is replaced with <code>TeleportToPathNode</code>}}
{{IO|Stop|Stop the train.}}
{{IO|StartForward|Start the train moving forward.}}
{{IO|StartBackward|Start the train moving backward.}}
:{{bug|If the train's corresponding [[path_track]]s do not have "New Train Speed" set to a nonzero number, StartBackward will exhibit undesired behavior including the train freezing or moving in the wrong direction. This bug can be a pain if the train needs to ride through the path_track again at a different speed. This can be fixed by firing an "addOutput speed '#'" input at the path_track in question.}}
{{IO|Resume|Resume the train moving in the current direction after it was stopped via the <code>Stop</code> or <code>Toggle</code> input.}}
{{IO|Reverse|Reverse the direction of the train.}}
{{IO|Toggle|Toggle the train between start and stop.}}
{{I Targetname}}
{{I Parentname}}
{{I RenderFields}}
{{I Shadow}}
}}<noinclude>
[[Category:Input Templates|BaseTrain]]
</noinclude>

Latest revision as of 14:35, 18 August 2024

Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.