Skip to content

PathAvoid

uo.dll methodMethodsNeeds client
Call PathAvoid x y x2 y2 cost
Call PathAvoid x y x2 y2 cost facet

Also searchable as: PathAvoid · UO.PathAvoid

Marks the rectangle from x, y to x2, y2 as a place routes should go round if they can, like path avoid. cost is what each step in it costs on top.

Parameter Type Meaning
x number X position.
y number Y position.
x2 number X of the opposite corner, or of the other end.
y2 number Y of the opposite corner, or of the other end.
cost number Extra cost, in hundredths of a step.
facet number Facet number, as in CursKind. Default: the current facet.

In this order, from stack position 1:

Value Type Meaning
state string ok, or error: ….

See also