[Pogamut-list] Weapons in pogamut3

pogamut-forum at diana.ms.mff.cuni.cz pogamut-forum at diana.ms.mff.cuni.cz
Tue May 4 21:42:54 CEST 2010


Re: Weapons in pogamut3

Author: 

Hi again,

I have a question about retrieving information about current count of ammo of specific weapon. When I use bot.weaponry.getPrimaryWeaponAmmo(ItemType.FLAK_CANNON); I get right number (for example 15), but it is not decreased by shooting (still 15, but bot has already shot in primary mode). When I use bot.agentinfo.getCurrentAmmo(); it returns correct number (14 after shoot), but only for current weapon. Is it bug or feature? :-)

Tomas

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





More information about the Pogamut-list mailing list