xxxxxxxxxx
// Unreal Engine (c++)
// In the "AMyClass.h" add your function...
UFUNCTION(BlueprintCallable)
void SetValue(int value);
// After that you must define the new function in "AMyClass.cpp"...
void AMyClass::SetValue(int value){
//your code...
}