DPB2Class ยท Navigation

ExilePather

Query routes and path distances in the current area. Route calculation and issuing movement commands are separate operations.

Namespace: DreamPoeBot.Loki.Bot.Pathfinding

public static class ExilePatherView DPB1 version โ†’

Examples

Imports used by these examples
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;

Measure the route to a transition

if (!LokiPoe.IsInGame)
    return;

var target = LokiPoe.ObjectManager.GetObjectsByType<AreaTransition>()
    .FirstOrDefault(obj => obj.IsTargetable);
if (target != null)
{
    var distance = ExilePather.PathDistance(LokiPoe.MyPosition, target.Position);
}

A path measurement is not a movement command. Recheck the target before moving.

Members and overloads

1 results
Show all members

CanObjectSee

MethodLink โ†—
public static bool ExilePather.CanObjectSee(Vector2i start, Vector2i end, out Vector2i hitPoint, bool dontLeaveFrame = false, bool shouldUseRangedMap = false)

Convenience wrapper over DreamPoeBot.Loki.Bot.Pathfinding.ExilePather.Raycast(DreamPoeBot.Common.Vector2i,DreamPoeBot.Common.Vector2i,DreamPoeBot.Common.Vector2i@,System.Boolean,System.Boolean). Returns true if the line between start and end is unobstructed.

startVector2i
Ray start position.
endVector2i
Ray end position.
hitPointVector2i
On failure, set to the first blocking point; otherwise DreamPoeBot.Common.Vector2i.Zero
dontLeaveFramebool
Not used; kept for compatibility.
shouldUseRangedMapbool
If true, uses ranged/fly map for evaluation.

Returns: true if no obstacle was encountered; otherwise false.

Related types

DPB2 0.4.5.88 ยท Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.