Skaterboyjt97
Terrarian
How would i make a weapon use a custom sound? I have the .wav id like to use, Do i need a .cs for the sound file in the sound folder? And what weapon code would i need to make it play the sound?
[doublepost=1484019592,1484019412][/doublepost]I have a question, is there a way to make a sound play whenever you pull out a weapon?item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/Wooo");
assuming the wav is in that folder, names Wooo.
Don't need a .cs file for the sound[/QUOTE
Trying this now! Thank you so much...
No easy way that I can think of, but maybe you can hack it out with a hold style or something, dunno.[doublepost=1484019592,1484019412][/doublepost]I have a question, is there a way to make a sound play whenever you pull out a weapon?
Where do I put the sound name? I have the sound in the folder, everything else works, but when i use the item, i dont hear the soundHow would i make a weapon use a custom sound? I have the .wav id like to use, Do i need a .cs for the sound file in the sound folder? And what weapon code would i need to make it play the sound?
Please try to provide more content in future posts and refrain from "bumping" threads needlessly.bump
sameI need help adding custom sounds to a gun
i have added item.useSound = 11; and the line used above and i am still not having any luck.
Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 15);