how to write an event in c++ so that it is available in blueprints?


Hello, I am new to Unreal Engine and I have a problem: I wrote a class “AInteractiveActor,” which has a delegate event “OnPlayerAction”, I also have a blueprint that inherits from this class, but I do not have access to the event, there is no green button like this:

How to make it so that you can add events via a button or something like that:

Thanks!

It just to works…

Try compiling via the modules menu:
image
*Test51 - is the name of the project.

Ok, it works
But I still don’t see the add button:

p.s. button station base class is a child of interactive actor

Try creating a variable in c++ with the Player Actions category, is it visible?

yes, the variable is available, but the event is not:

Need to make it blueprintcallable

still doesn’t appear for some reason

(post deleted by author)