tModLoader How do I make an item shoot the ammo item equipped in the ammo slot?

MrQuinnzard

Official Terrarian
I want to make a rocket minigun, but it isn't shooting the rockets I have equipped. I have Mini Nukes as a placeholder.

C#:
Item.shoot = ProjectileID.MiniNukeRocketI;
            Item.shootSpeed = 32; // The speed of the projectile (measured in pixels per frame.)
            Item.useAmmo = AmmoID.Rocket; // The "ammo Id" of the ammo item that this weapon uses. Ammo IDs are magic numbers that usually correspond to the item id of one item that most commonly represent the ammo type.
 
Back
Top Bottom