Custom event not working outside of blueprint

I have been trying to do another custom function and I know the function works because on play it works. It is also set up exactly how another custom event is set up so I have no clue why it is not functioning.

Any help would be greatly appreciated.

your problem is likely GetActorOfClass you have no idea what that is returning but otherwise what error/problem are you having exactly?

generally speaking make sure you check all your references are valid.