Reply to Re: Code for enemy hit?
If you don't have an account, just leave the password field blank.
Yep, this is basically it. You need to add this code to every enemy script. Although it seems like an annoying thing to do, it does also allow you to make certain enemies (undead? machines?) immune to the effect by not including the code in their scripts. I would strongly suggest making an external script for these extra effects so you can just include one line inside the enemy scripts that calls the external.