How do you convert a vector to a float

Hi does anyone here know how to convert a vector to a float:

I want to move a wall using a timeline for the Z axis, but also use the get world location where ever the blueprint is placed for the X and Y axis.

1 Like

Hi there,

To get the float components of a Vector all you need to do is drag out the yellow wire from the right side of the Vector node, then in the search box that opens when you release scroll down to the very bottom and select “Break Vector”.

This will give you 3 float outputs for X, Y, and Z.

Hope that helps!

1 Like

Even though this has a solution, the OP (and me) want a float from a vector, I figure either of these in screenshot does the trick. Either use Vector Length (the easiest) or Distance from a 0,0,0 vector location.

{B43F14C9-15FE-44EB-80C2-A0E1ED70FB55}