BETA — Preview build
Skip to content
Put the vehicle back to what you stored earlier

Restore state ​

Puts the selected vehicle back into the state that was saved earlier with Store state. This action has no settings.

How it works ​

  • First all function states are restored one by one, then the speed and direction.
  • When no state was stored in this script run, nothing happens.
  • The state is restored on the vehicle address that was stored, also when a different vehicle is selected in the meantime.

Example ​

A train has to wait at a signal. Store state saves its speed and lights, then the train stops. When the signal clears, Restore state sets the lights as they were and drives on at the stored speed.