How get class reference in blueprint for custom C++ function?

Hi, i made new class based on actor, in .h/.cpp file i made new function, in level blueprint i can add event “OnBeginPlay” then add call to my function, but blueprint show pin under it and word “self”, such blueprint won’t compile, what’s the problem?

I can add exact error message later after fresh installation of engine, because of some other side problems.

This blueprint (self) is not a %myclassname%, therefore ’ Target ’ must have a connection