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.
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.
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.