In what type of script block are you trying to use CharacterHasBeenHitBy?

Also are you sure you have the damage type strings right? The strings for various things in D:OS are rather annoying. Some are ALL CAPS, some are "First" with the first letter caps, some don't even match the in-engine names right.