Depends from where you are calling the function. If your function is inside the character blueprint, you need a reference of the character saved somewhere (e.g Game Instance), unless you are calling it directly from inside the character blueprint. If you can give us some more details about what you are trying to achieve and you have right now we’ll be able to help you better.
ok i make a Blueprint Actor and want to call a function or a custum event in this BP.
this blueprint is in the world placed.
now i want to call the event or function via button from character or controller but this not work, buit work if i make with all actors of class. but i want cast to.
Well you need a reference of it. You can make a reference in your game instance, and when this actor is created, it saves a reference of itself in the Game Instance, then from your character, access the game instance and get the variable.