[Pogamut-list] player or bot

fabien.tence pogamut-forum at artemis.ms.mff.cuni.cz
Tue Nov 4 16:39:37 CET 2008


Re: player or bot
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=349&comments_parentId=348&post_reply=1#form>





More information about the Pogamut-list mailing list