Hi,
I have a problem with using NavigationHandle in my PlayerController. I create function:
function bool FindPlayerPath( Vector TargetLoc )
{
local Vector NextDest;
if(NavigationHandle != none)
{
NavigationHandle.SetFinalDestination(TargetLoc);
class'NavMeshPath_Toward'.static.TowardPoint(Navig ationHandle, TargetLoc);
class'NavMeshGoal_At'.static.AtLocation(Navigation Handle, TargetLoc);
if ( NavigationHandle.FindPath() )
{
`Log("Path found");
NavigationHandle.GetNextMoveLocation(NextDest, 15);
}
NavigationHandle.ClearConstraints();
}
}
Problem: path never found...
Sorry for my english!
Koudy



Reply With Quote

Bookmarks