How to convert this Blueprint image to C++

How to convert this Blueprint image to C++

please help

Use chatGPT. You already have working code in blueprints.

So ask gpt to make same code in C++ as function.

However gpt is 50/50 sometimes it makes really dumb code, sometimes it makes it perfect.
Just double check what it proposes, then compile and fix bugs.

ps.
gpt is faster and bit less reliable way to get answers than this forums.

how to upload photos to chat gpt

You need to buy a subscription to upload photos to chatGPT, then you should see an attachment icon

You do not upload photos, you describe what you want.
Just write what your code does.

like this:
I need unreal C++ function, that is blueprintable and does this:
and list what it does,

However if your events are declared in blueprints, C++ code cannot reference them.
C++ does not know anything that is declared in BPs.

i will try it