How to deliever Blueprint values to C++ without inheritance?

I’m trying to get characters and AIs locations to do some things I can only do at C++. So far, I tried to implement a C++ interface on my character Blueprint, but I can’t find a way to deliever it’s position because BlueprintNativeEvent functions don’t allow return and I can’t find a way to call BlueprintImplementableEvent from C++, as I have no reference to Blueprints actors.
Is there a simple way I can get those blueprints values without having to make a class to inherit from C++? Be it with or without interfaces.

You can’t have a return type, but you can have an Out Parameter

UFUNCTION(BlueprintImplementableEvent)
void GetInt(int32 &Value);
int32 Value;
GetInt(Value);

In BP, you have to override your function here to use it:
image

1 Like