[Pogamut-list] Swarm Bots - NavPoints question.

jakub.gemrot pogamut-forum at diana.ms.mff.cuni.cz
Tue Mar 22 17:59:35 CET 2011


Re: Swarm Bots - NavPoints question.

Author: jakub.gemrot

Hi Tyler! Welcome to the forum :-)

So are you using NavPoint instances?

1) UT2004 navigation graph is probably not as dense as you would like to, 
so you might find the distances between navpoints unsuitable

2) UT2004 has UnrealEd.exe that is editor for UT2004 maps and you may place as many additional
navpoints as you would like to have

3) NavPoint.getOutgoingEdges() method will give you Map that
has keys => ids of distant navpoints, values => object describing the link between navs (note that
you have to interpret the getFlag() method of the link to filter out unsuitable links like PROSCRIBED or PLAYER_ONLY, etc.)

4) Use world.getAll(NavPoint.class).values() to obtain collection of all NavPoints that are present in the game.

5) Use info.getNearestNavPoint() to obtain navpoint that is the nearest to you

Hope these notes make some sense to you! If not keep asking!

Best,
Jimmy

P.S.: please note that UT2004 can't (usually) run more than 8 bots at once without having performance problems

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=595&post_reply=1#form>





More information about the Pogamut-list mailing list