Does Switch on Name work for Enemy hitting Player?

I’m a little unclear what’s going on here, but are you setting this?

329108-screenshot-1.jpg

and this bit wont work because the ref is empty:

Might be an idea to set the enemy ref here: