TrainCarts/控制牌/动画

From BergerHealer Wiki
Revision as of 09:35, 12 September 2024 by Halogly (talk | contribs)
Jump to navigation Jump to search
Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

动画牌可以播放储存在列车附件中的动画。它可以覆盖动画的某些属性,例如动画速度和是否循环播放。可以远程设置列车中所有车厢、单辆矿车和远程矿车播放动画。


语法

Signtemplate.png
[train]
animate
rotate


Signtemplate.png
[train]
animate looped
roll
0.5


Signtemplate.png
[train]
animate lr
rotate
0.5 0.4


第一行

[train] 为列车中所有矿车播放动画,[cart] 只为经过上方的单辆矿车播放动画。 也可以使用远程控制


第二行

animate,可选后跟以下标签:

  • reset(或:'r')- 重置动画。
  • looped(或:'l')- 循环播放动画。
  • queue(或:'q')- 将动画添加到播放列表。当前动画播放完后会继续播放列表中设置的动画。
  • move(或:'m')- 移动动画模式。使播放速度取决于附件或列车的移动速度。

可像这样指定多个标签:

Signtemplate.png
[train]
animate lm
rotate
1


第三行

动画名称。默认可以使用 rotaterollpitch 来为矿车制作动画。


第四行

Can be left empty, otherwise the speed and delay for playing the animation can be specified. The speed is multiplied with the speed(s) of the animations played, and the delay is added. First number is speed, if a second number is specified with a space between it, that is the delay. To play an animation in reverse, use a negative speed.


Scenes

As of version 1.17.1-v2 it is possible to create scenes in the animations of trains. To play a specific scene with a sign, put it on the sign as such:

Signtemplate.png
[train]
animate
doors[open]
1.0

Which will play scene 'open' of animation 'doors'. You can also specify a range of scenes to play using animation[scenestart:sceneend], or animation[:scene] to play from the beginning of the animation to this scene, or animation[scene:] to play from the scene to the end of the animation.