TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DrawTownAttackGun()

virtual void Terraria.ModLoader.GlobalNPC.DrawTownAttackGun ( NPC npc,
ref Texture2D item,
ref Rectangle itemFrame,
ref float scale,
ref int horizontalHoldoutOffset )
inlinevirtualinherited

Allows you to customize how a town NPC's weapon is drawn when the NPC is shooting (the NPC must have an attack type of 1). scale is a multiplier for the item's drawing size, item is the Texture2D instance of the item to be drawn, itemFrame is the section of the texture to draw, and horizontalHoldoutOffset is how far away the item should be drawn from the NPC.

Parameters
npc
item
itemFrame
scale
horizontalHoldoutOffset

Definition at line 770 of file GlobalNPC.cs.

771 {
772 }