Skip to content

Wye turnout rail tile

$object.turnoutwyerailtile:description$

Properties

id

Unique object identifier. Each object in Traintastic has a globally unique id that can be used in scripts (see world.get_object).

name

Turnout name.

position

Current turnout position, a Turnout position value. To change the turnout position call set_position.

Methods

set_position(position)

Change turnout position.

Parameters:

Return values
true if the position is changed, false if position value is invalid or turnout is locked e.g. due to a reserved path.