Hello, with code like
Memory.WowMemory.LockFrame();
Vector3 found = Vector3.Zero;
for (float i = 1; i < 150; i+= 0.5f)
{
var to = new Vector3(ObjectManager.Me.Position.X, ObjectManager.Me.Position.Y, ObjectManager.Me.Position.Z - i);
bool obstacleFound = wManager.Wow.Helpers.TraceLine.TraceLineGo(ObjectManager.Me.Position, to, CGWorldFrameHitFlags.HitTestGroundAndStructures);
if (obstacleFound)
{
found = new Vector3(to);
break;
}
}
Memory.WowMemory.UnlockFrame();