BVEStation

Author Topic: Creating Signals in OpenBVE  (Read 1615 times)

Ztraintobroad

  • Guest
Creating Signals in OpenBVE
« on: April 29, 2015, 11:02:35 am »
Alright, so I want to use a .animated signal file without the refresh command, but I want the animated signal to change once the train passes through it. I dont know how to exactly do this, and I tried using this code, but I dont think it works:


Ztraintobroad

  • Guest
Re: Creating Signals in OpenBVE
« Reply #1 on: April 29, 2015, 11:39:40 am »
[Object]
Position = 0, 0, 0
States = SignalBlank, SignalGreen.b3d, ..., SignalRed.b3d
StateFunction = if[trackDistance>1 | section==1,]]
RefreshRate = if[trackDistance>40 | section==0, 1,]] 1

Can anyone help me?