[Resolved]4.3 - Move character on Z axis bug?(SetActorLocationAndRotation)

Hi ,

I took some time to play around with this and have discovered a working (though definitely not the ideal) solution to your ladder.

I will post some images down below, however this is basically what I did:

  1. Create a blueprint for the ladder object with a static mesh and a box volume over the area that I want the ladder to be.

  2. In event graph, create a begin overlap and an end overlap state.

  3. In the begin overlap, cast it to your character blueprint and set movement mode to “flying”

  4. In end overlap, do the same, except set the movement mode to “walking”

  5. Compile, save, go to your character blueprint

  6. For your climb feature, drag off of the event button you want to use (in your case, F) and create a branch node.

  7. Drag off of condition and create an “is Flying” node, the target should be character movement

  8. From the true node of your branch, create a gate. I use a timer set from event play to drive the Enter and the branch should be plugged into open. Set the release of F into close. Place your Set actor relative location in the Gate Exit.

  9. Create a Get Actor Location node and add it to a Get Up Vector node, then break that vector, add 5 to z and make vector to plug into location as you had previously.