[Pogamut-list] Self Object Listener

michal.bida pogamut-forum at diana.ms.mff.cuni.cz
Sun Apr 8 00:30:33 CEST 2012


Re: Self Object Listener

Author: michal.bida

There is a difference between Self and Player objects. Self object contains information about the bot your are controlling, player object contains information about OTHER players/bots in the game (for each player/bot there will be on player object created in Pogamut). If you want to get information about OTHER player or bot in the game, you need to refer to Player object that is associated with this player/bot. 
PlayerKilled event is called each time when some OTHER player or bot dies in the game. If you want to react to your bot death, use BotKilled event or botKilled method that is part of all our example bots. These events are exported only for bot and observer connections and not for ControlConnection. For gathering the statistics of players and bots there is ObserverConnection (if you are using UT2004). Where did you find out that ControlConnection provides these kind of information? Only thing the control connection provides is positions of all players on the server and player scores. 
We have a new archetype with working ObserverConnection example If you install Pogamut 3.3.0 it should install this archetype to your local maven repository and you can open it from NetBeans. There is also a somewhat outdated tutorial here: [http://diana.ms.mff.cuni.cz/pogamut_files/latest/doc/tutorials/07-ObserverConnection.html|ObserverConnection] (but it should mostly hold).
Now it would be nice to know what kind of information you need to gather about player/bots.

best,
m

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





More information about the Pogamut-list mailing list