[Pogamut-list] Tracking Player Position
julietnpn
pogamut-forum at diana.ms.mff.cuni.cz
Sat Jul 31 21:55:57 CEST 2010
Tracking Player Position
Author: julietnpn
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_parentId=323#form>
More information about the Pogamut-list
mailing list