Open Rails

AETraveller.MoveToNextItem Method

[This is preliminary documentation and subject to change.]

Move AETraveller to the next OR Item or the given location

public TrItem MoveToNextItem(
   List<GlobalItemAllItems,
   int tileX,
   int tileZ,
   float x,
   float z
);

Parameters

AllItems
tileX
Starting tile coordinate.
tileZ
Starting tile coordinate.
x
Starting coordinate.
z
Starting coordinate.

Return Value

If an item is found, the found GlobalItem otherwise null.

See Also

AETraveller Class | Orts.Formats.OR Namespace