[Pogamut-list] Secondary shoots
davian
pogamut-forum at diana.ms.mff.cuni.cz
Tue Sep 27 14:10:02 CEST 2011
Secondary shoots
Author: davian
Hi! I use this code:
----------------------------------------------------------------
if (weaponry.getSecondaryWeaponAmmo(weaponry.getCurrentWeapon().getType()) > 0)
{
body.getShooting().shootSecondary(Enemy);
body.getShooting().shootSecondary(Enemy.getLocation());
System.out.println("Secundary shoot");
} else {
body.getShooting().shootPrimary(angerEnemy.getLocation());
System.out.println("Primary shoot");
}
-----------------------------------------------------------------------
It prints, "secondary shoot" but the bot doesn´t shoot the grenade (secondary ammo of the assault rifle)
How i can make the bot shoots secondary ammo?¿?¿
Thanks!
best regards!
--
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_parentId=828#form>
More information about the Pogamut-list
mailing list