Forum: PogamutUT2004

Changing weapons and firing mode

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.