SE Play on screen flash for damage snippet

I apparently either have a script the removes the sound, or it was never there and i didn't notice.
Either way, I couldn't find a snippet so I made it myself.

All this does is play what ever you define as Actor Damage in the database, when you take damage from floor tiles (or poison if that works for you, it didn't for me and I had to create a common event to do poison I don't know why).

Paste below all other scripts to make sure it doesn't still mess up.

This is an overwrite method, it's default except sound.play.

EDIT:
Use as you please no need to credit.

Code:
class Game_Screen

  def start_flash_for_damage
    start_flash(Color.new(255,0,0,128), 8)
    Sound.play_actor_damage
  end
end
@Genesis7 Please edit your post to say if you want to be credited, and if so, how.

Original thread: https://forums.rpgmakerweb.com/threads/se-play-on-screen-flash-for-damage-snippet.108495/