• PC NEWS: 1.4.2.3 update is out! More info here. Report bugs here
  • CONSOLE 1.4 NEWS: The current plan is to have Terraria: Journey's End out for Xbox and PlayStation in Q3 2021 (Jul-Sep). Switch will follow shortly afterwards. More info here. Stay up to date with console news here
  • MOBILE NEWS: Stay up to date with the latest mobile news here. Report mobile bugs here

Custom NPC Sounds?

Dipling

Spazmatism
I have A sounds folder and within that I have the 'Custom' folder, the sound works, as I tried it as an item use sound and it worked, but when I assign it to an NPC Hit Sound it refuses to play in game.
Code:
Code:
npc.HitSound = mod.GetLegacySoundSlot(SoundType.NPCHit, "Sounds/Custom/RosenHit");
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCHit, "Sounds/Custom/RosenHit");
My sounds folder:
1616665738336.png

Neither the hit sound or the death sound play.
 
Top Bottom