[Pogamut-list] Death Location - HeatMap
michal.bida
pogamut-forum at artemis.ms.mff.cuni.cz
Thu Apr 2 23:32:19 CEST 2009
Re: Re: Death Location - HeatMap
Author: michal.bida
You should retype the message to PlayerKilled class (or the name of the class that handles player killed message - KIL in GB), than you will have acces to all of the attributes - one of them killer holding UnrealId of the killer.
Or you can register the listener to Player killed messages and it will give you desired type with all of the attributes instantly (is it true guys?). Look for the examples in our example bots code (hunter especially)!
michal
> Ok michal here is my code , which i think just gives me the ID of the person killed
> ...
> boolean gotKill = false;
> public void receiveMessage(RcvMsgEvent e) {
> //MessageObject temp = e.getMessage();
> //must re-init here, bot is dead , restart it all
> gotKill = true;
> playerName = e.getMessage().UnrealID;
> }
> ... -> then I check during doLogic loop
>
> the only attributes are visible, ID, unrealID,
>
> When gamebots sends a "DIE" message it will attatch the killer's unrealID but i don't know how to get to it through pogamut.
More information about the Pogamut-list
mailing list