entity sounds

Started by ponderitus, May 13, 2017, 07:31:09 PM

Previous topic - Next topic
Does anyone know where the code is which selects the sounds entities make? I want to change the noise the chest makes when opening, I know how to change it for a chest on a map (as below), but i wanted to change all the sounds from the Alttp ones, like I also want to change the noise a block makes when pushed and so on.

function chest:on_opened()
  sol.audio.play_sound("chest_small")
end

Just replace the sounds in /sounds, else if you want to have more sounds, you have to go through custom entities

cheers man, that was my quick fix, just rename my files to be named the same and delete the old ones