[Pogamut-list] Tracking Player Position

julietnpn pogamut-forum at diana.ms.mff.cuni.cz
Sun Aug 1 13:58:15 CEST 2010


Re: Tracking Player Position

Author: julietnpn

Hello Jimmy, thanks for the warm welcome. :)

My over all goal is to get a sense for how the player performs against my bot versus another player.

I'm actually interested in more than just the Player's position, but also what weapon they're carrying, who they're targeting, and so on. I just thought asking about the position would be a good place to start. 

It turns out that PlayerObjectUpdate event has much of the information I needed, but as you know it is only accessible when the player is in the bot's "sight".

I'm running Pogamut 3.0.11. I'll try out what you suggest and post any further questions I have.

Thanks for the quick response :)

Juliet


> Hi, I'm interested in having a constant knowledge of the player's position. Unfortunately this isn't possible when the bot listens for the Player object to update, because this only works when the player is in sight of the bot. See below:
> 
>  IWorldObjectEventListener playerUpdatedHandler =
>             new IWorldObjectEventListener() {
>                 public void notify(WorldObjectUpdatedEvent event) {
>                     Player player = event.getObject();
>                    user.info("PLAYER UPDATE: " + player.getId().getStringId() + " LOCATION: " + player.getLocation() );
>  }
> 
> So I tried exploring this using the ObserverAgent like Simon did in this post: 
> 
> http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?topics_offset=1&forumId=4&comments_parentId=79
> 
> But came to the same conclusion that the observer doesn't actually see these events. 
> 
> So if somebody could point me in the right direction on this matter I would very much appreciate it. :)
> 
> Thanks!
> Juliet

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





More information about the Pogamut-list mailing list