How to get the values i want with blueprint?

Hi, quick question.

I’m new in UE, and i’m trying to understand blueprints.
I have a third person camera, and the CameraBoom is set with a custom Socket offset

I would like to change some value of the Socket Offset on a button press.
Now, i have set the event opened the blueprint etc. But my question is, how can I access a variable/value that is not in the blueprints functions.

Basically, how can I access to values I want in the blueprint, how can i make a getSocketOffset and setSocketOffset function in the blueprint? Do I have to create a C++ Script just for that? Or is there another way?

Yes for that kind of stuff you need C++. In your case it would be creating your custom camera arm.

But for functionality that you need, there is easier way:
Set relative offset of camera. Because its attached to custom socked, when you change cameras relative location it will work like moving that socket. You just need to do bit different vector math.

Hi, thanks for the answer,
Just another quick question if I can, do you know if there is a way to do a sort of Unity’s Coroutine in blueprint?

I mean, let’s say I press a key, and I want my camera to move from A to B in x second.

Is it possible to make a blueprint function that will execute herself until she reach the breakpoint I want to?

(this is an exemple, i dont need that for the camera, but it could be applied in other cases ^^)

Thx again :wink:

Interpto and interpto constant. You can use those with location or rotation. They smoothly change values.
For that yous use “on tick event” to call your function and interpto to smooth values over time.

You also can use function (draw it graphicaly in editor then read values).