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

◆ UseSound

SoundStyle? Terraria.Item.UseSound

The sound this item makes when used. Set this to an existing T:Terraria.ID.SoundID entry or assign to a new T:Terraria.Audio.SoundStyle for a custom sound.
The Basic Sounds Guideteaches how to find existing sounds to use, how to use custom sounds, and how to customize the playback properties of the sounds.
For example Item.UseSound = SoundID.Item1; can be used for the sword swing sound.
Defaults to null.

Definition at line 534 of file Item.cs.

Referenced by Terraria.Item.DefaultToBow(), Terraria.Item.DefaultToFood(), Terraria.Item.DefaultToGolfBall(), Terraria.Item.DefaultToGolfClub(), Terraria.Item.DefaultToHealingPotion(), Terraria.Item.DefaultToLawnMower(), Terraria.Item.DefaultToSpear(), Terraria.Item.DefaultToStaff(), Terraria.Item.DefaultToVanitypet(), Terraria.Item.DefaultToWhip(), Terraria.Player.ItemCheck_Inner(), Terraria.Player.QuickBuff(), Terraria.Player.QuickGrapple(), Terraria.Player.QuickHeal(), Terraria.Player.QuickMana(), Terraria.Player.QuickMount(), Terraria.Item.ResetStats(), Terraria.Item.SetDefaults1(), Terraria.Item.SetDefaults2(), Terraria.Item.SetDefaults3(), Terraria.Item.SetDefaults4(), and Terraria.Item.SetDefaults5().