Jump to content

Recommended Posts

"Hello Don't Starve community,

I'm working on a mod that includes a feature for health regain on attack, using the following Lua script snippet:

 
    if attacker.components.health and not attacker.components.health:IsDead() then
        attacker.components.health:DoDelta(5)
    end
 

This code successfully restores health to the attacker, but it also triggers the default health regain sound effect. I'm looking to remove or disable this sound effect while keeping the health regain functionality intact. Does anyone have advice or suggestions on how to achieve this? Any guidance or code examples would be greatly appreciated.

Thanks in advance for your help!"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...