RegisterTrackJunction
Docslocal retval = RegisterTrackJunction(trackIndex, trackNode, newIndex, newNode, direction)Description
Registers a track junction that when enabled will cause a train on the defined trackIndex, node and direction to change its current track index and begin traveling on the new node
Parameters
| Name | Type | Description |
|---|---|---|
trackIndex | int | The track index a train should be on |
trackNode | int | The node a train should be on |
newIndex | int | The new track index for a train to be placed on |
newNode | int | The new track node for a train to be placed on |
direction | bool | The direction a train should be traveling for this junction |
Returns
intReturns an integer value.