Skip to content

path Get

Sub-commandPathfindingNew in Reforged
path get {n}
Sets
#PathState, #PathX, #PathY, #PathZ, #PathDir

Also searchable as: path Get

path get loads step n (from 1 to #PathCnt) of the route the last path find planned: #PathX, #PathY and #PathZ are where the step ends, #PathDir the direction it goes in.

A number out of range sets all four to 0 (#PathDir to -1) and #PathState to error: no step ….

path find 1600 1690
for %i 1 #PathCnt
{
path get %i
if #PathZ > 10
event SysMessage Step %i goes up to #PathZ
}
halt

See also