Looking for instructions creating interactive window that opens and closes up and down.

Hi all,

I am trying to find a simple set of instructions on opening and closing a window. My code snippet below works great on opening and closing a door, but I need the window pane to move up and down. I used several permutations from the lerp to set relative rotation and the window moves in all sorts of directions, but not just simply up and down along a Y axis.

Help…
Thanks
Tony

It’s exactly the same, just lerp two floats (open and close height) and feed it to set relative Z location of the window pane component.

Thanks pezzott1,

I tried it but no luck.

I switched out the “Set Relative Rotation” to Add Relative Location"

I tried with the lerp but crazy stuff happened. See below in the pic. Without lerp it opens upward but I cannot control the distance. When I press F key again it opens even higher instead of reversing. See whole code below.

Thanks
Tony

Hi All,

Persistence wears down Resistance…

Below is the final BP. The window moves up and down. I have no need for the timeline. But the overall function calls have increased. But I can also control how far up and down, and do not have to change settings since it it uses relative location and rotation.

Thank you for letting me think out loud. :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.