I did read the question, but perhaps I didn’t understand it.
I created a new class and added the following to the header.
I then added the rest in the cpp file.
Then I created the BP and added it to my level with the following BP in the actor.
Here’s the output.
If I still don’t understand the question or this doesn’t work I apologize.