[Pogamut-list] Changing weapons and firing mode

slackness pogamut-forum at diana.ms.mff.cuni.cz
Wed Dec 14 06:16:05 CET 2011


Changing weapons and firing mode

Author: slackness

In my game logic, when I print the result of weaponry.getAmmos() to the log, (where weaponry is a Weaponry object), I can see that I've got a Link gun, as well as Assault rifle and Assault rifle Grenade mode. My default weapon is Assault rifle. Yet, when I try to change the weapon using weaponry.changeWeapon(ItemType.LINK_GUN), it returns false. Also, when I do shooting.shootSecondary(player) (where shooting is an AdvancedShooting object and player is the human player object), to use the Grenade mode of assault rifle, it refuses to shoot.

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





More information about the Pogamut-list mailing list