CheeseyFries482
Skeletron Prime
Hey, I'm trying to make a mod that adds an NPC. It's supposed to shoot bullets from a sniper rifle. The bullets work but the sniper rifle won't show up when the NPC fires. heres the code snippet.
public override void DrawTownAttackSwing(ref Texture2D item, ref int itemSize, ref float scale, ref Vector2 offset)
{
item = ModContent.Request<Texture2D>("Terraria/tModLoader/ModSources/MeNPC/Content/Items/Weapons" + ItemID.SniperRifle).Value;
itemSize = 40;
}
If anyone could help me I would appreciate it, thank you
public override void DrawTownAttackSwing(ref Texture2D item, ref int itemSize, ref float scale, ref Vector2 offset)
{
item = ModContent.Request<Texture2D>("Terraria/tModLoader/ModSources/MeNPC/Content/Items/Weapons" + ItemID.SniperRifle).Value;
itemSize = 40;
}
If anyone could help me I would appreciate it, thank you