Railroad Switch Control

Parent

The controler object for a railroad switch.

Functions

getControlledConnections () → connections : Array<Trace<RailroadTrackConnection>>

Returns the Railroad Connections this switch is controlling.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Controlled Connections

Return Values
Name Type Description

Connections connections

Array<Trace<RailroadTrackConnection>>

The controlled connections.

switchPosition () → position : Int

Returns the current switch position of this switch.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Switch Position

Return Values
Name Type Description

Position position

Int

The current switch position of this switch.

toggleSwitch ()

Toggles the railroad switch like if you interact with it.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Toggle Switch