TrainCarts/控制牌/阻挡器

From BergerHealer Wiki
Revision as of 12:20, 4 September 2024 by Halogly (talk | contribs) (Created page with "为了使用路径查找,阻挡器的第一行请始终设置为 ''[+train]'',否则不起作用。")
Jump to navigation Jump to search
Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

TrainCarts-Blocker-Ramped.gif

blocker(阻挡器)控制牌(以下简称阻挡器)允许你阻挡来自某个方向的列车。在路径查找功能中也用于表示被禁用的路线。举个例子,如果列车被发往错误的方向,可能与其他列车相撞,你可以使用阻挡器防止此类事件的发生。

阻挡器需要激活才能运行。路径查找时无需是激活。它可以放置在直道和坡道上,因此它可以让下坡的列车停止。玩家不能将列车推过阻挡器,但可以推向反方向(如果反方向没有阻挡器的话)。

因此,即使是激活的阻挡器也不会完全阻挡列车的移动,你可以往反方向推走。


语法

Signtemplate.png
[+train:north]
blocker


第一行

[train] 或 [cart] 后面可跟方向,用于指定要阻挡的方向。

你可以使用下面定义的类型。如果留空(比如 [train]),列车必须面向阻挡器的正面或侧面。类型由方向的首字母定义,比如右的英文 right,使用 r 表示。

为了使用路径查找,阻挡器的第一行请始终设置为 [+train],否则不起作用。

Text Result
north Trains coming from the north are blocked
south Trains coming from the south are blocked
east Trains coming from the east are blocked
west Trains coming from the west are blocked
left Trains coming from the left (relative to the sign) are blocked
right Trains coming from the right (relative to the sign) are blocked
backwards Trains coming from the back (relative to the sign) are blocked
forwards Same result as if you keep the line empty


Third and Fourth line

Similar to the station sign, you can add an optional action to perform after the blocker sign loses power. Options are left, right, continue and reverse. If left empty, the train is not moved at all. All actions launch with the same velocity as the train had when entering the blocker sign, no actual launching is performed. The third line is used for a delay, the fourth specifies the direction to launch to.

Slowing down on approach

By setting the train wait acceleration property, trains will automatically slow down approaching an active blocker sign, instead of stopping instantly.

Media

https://www.youtube.com/watch?v=S1ERZDwJnZk Important: Syntax has changed over time. Use [train:left] to block trains coming from the left. The third line no longer defines the direction!