Results 1 to 2 of 2
  1. #1

    Default PathFinding for PlayerController

    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

  2. #2
    Skaarj
    Join Date
    Nov 2009
    Location
    Ukraine
    Posts
    16


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.