I thing that's what beep() is for.

Thanks, guys. I found a workaround, or maybe a better way to do it.

I put the health condition in the attach_weapon action and that works.