Set actor location doesn't work

Havbon, you’re suffering from a common early blueprint problem, overcomplication :slight_smile:

Can we do two things?

  1. Just check the AddActorWorldOffset on it’s own, it does work. Can I just check, are you expecting to move the BP? In which case ok, but if not you need a reference to the actor you intend to move plugged in there.

  2. What are you trying to do? Do you have a window BP and a player ( FP/TP? ) and you want the player to jump through the window?

Hello! I’m quite new to Unreal Engine and I am trying to make a program that let’s you jump through windows. The problem is that add actor world, set actor location and all of those nodes that should move the character doesn’t seem to work. I’m not blaming the engine, I think there is some error in my script, however I cannot seem to find it. My hypothesis is that for some reason the program teleports you back to the origin point.
Here’s an example, let’s say the character is at coordinates 0, 10, 0, and I want the program to teleport the character to 10, 10, 0. But when i run this program I can just see a flash and then the characters back to the point it startet.


Now that I tried to explain above was just a hypothesis.

here’s some screenshots:

Above you can see the blueprint for the window I am aiming to be able to climb through. Oh and if you see any ways to improve any of the designs in this project please notify me and I will ajust it. Help is greatly appreciated.

This picture is in the characters blueprint. This should get all the information from the window BP and save variables. Nothing big happening here.

Again, not much happening here. This blueprint just really sends a signal when the vault button(space) is pressed, you can ignore the variables as I do not use them.

This small script is starts right after vault is pressed, it just checks if the vault meets criteria.

This is the image where the character should vault, I haven’t created the vaulting yet. The goal is for the character to align itself relative to the window, the “set control rotation” works, but not the add actor world offset or any other “move character” nodes. I have drawn a line over the node that’s not working.


Thank you so much!

1 Like

I guess it is your characterMovementComponent. Can you Set movement Mode to fly and re-check the Rest of your Code or at least the setactorlocation?

Have you tried the “teleport” node?
You might get your position reset due to collision issues.

Hello! Thanks for the reply, however I can’t seem to find the movement mode? Is it in the movement blueprint?

Hello there, im not quite sure I understood what you ment, however I checked the add actor world offset, and it does not work.

Hello! I did try the teleport node, no luck though… Thanks for the reply!

I guess your pawn inherits from character? Then on the left top where your components are you should find a “characterMovementComponent” - drag that into bp, pull of from it and search for movementMode