Game Development Community


#1
05/22/2009 (10:13 pm)
Do you mean the ammo's ID when it is an item that can be collided with and picked up or when it is being used when you fire/reload a weapon?

In the case of the former, from the onFire callback you can't. But you can acquire this information from onInventory() or even onPickup().

In the case of the latter, the ammo actually being used by the weapon image is just part of the scripted inventory construct and is not an actual item, a counter basically -- it doesn't exist in the game world.
#2
05/24/2009 (8:18 pm)
ok.I got what you mean:)thank you very much.