[Pogamut-list] player or bot

hauz pogamut-forum at artemis.ms.mff.cuni.cz
Fri Nov 7 20:36:42 CET 2008


Re: Re: player or bot
Yes, you're right. It's like you sad. Thank you and have a nice day



> Short answer: Yes, you have to look at the player ID (I don't remember the methods to use, sorry). Human players have ID looking like xPlayer''Number'', UT bots have xBot''Number'' and Pogamut bots RemoteBot''Number''.
> 
> Long answer: Players ID are based on the UT class used to represent who is controlling the character in the game (base class: Controller). There are 2 classes which extends the Controller class: AIController and PlayerController (see [http://unreal.student.utwente.nl/uncodex-ut2004/engine/controller.html.gz| the documentation]). So if a ID begins with the name of a class inheriting AIController (xBot for example) it's a bot, if not, it is a human.
> 
> 
> If a member of the Pogamut team could confirm or give a simpler method ;).

----

Reply Link: <http://artemis.ms.mff.cuni.cz/pogamut/tiki-view_forum_thread.php?forumId=3&comments_reply_threadId=354&comments_parentId=348&post_reply=1#form>





More information about the Pogamut-list mailing list