Timeline - Moving object Upwards

Hello, I am trying to get an object to move upwards. In this case I want the gate to move upwards after entering a key. I have the lock and key feature already set up and that works. For now I have it set up to open upon overlap for ease of testing. When adding a float, no matter what axis I put it on (X,Y,Z) it does not move upwards, just rotations on that position. Is there a function I am missing or inputting incorrectly?

Code below of overall view:

Here is one of the timeline float

Use set actor world offset,and input vector and float that You can make it run in one direction at a fixed speed.

1 Like

Because you’re setting Rotation instead of Location.


See if you can get it to work with a setup like this:

Here, the Start | End are additional vector variables.

2 Likes

Well it being on rotation makes sense…duh! Kept overlooking that part lol. This really helped integrate with my current code, thanks for taking the time to write this out. Hope you guys have a great Thanksgiving if you celebrate or some kind of relaxation time.

For those who are integrating and a little greener to UE5 than me (which is hard to beat) the custom event you create plugs into the sequence. Make sure that the vectors you create have the eye icon if you want to edit it in the map view than on the blueprint.

This will make it easy to adjust the variables. The timeline I used was a float for first key at 0.0, 0 and second key at 3, 1. Make sure again you add actual information to your variables for speed, as well as the start and end locations so it actually moves from and to the desired location. Hope this helps others that had a hard time using the right key terms to find an answer that worked.

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