Set Location of Charakter BP

Hey There

I am stuck with something that sould be easy but i cant get it to work.
I want to move my player character to a location once a event gets triggered. This worked fine as long as i was using a Pawn as Player Charakter. Now it became necessary to change the Blueprint to the Character parent class and since then, its not working any more.
Do i have to give a special Target to the Set Actor Location Node or why is it not moving the Player?

I tested some diffferent locations but somehow, the player (in my case a ball) just stays where he was.

Have you tried making the destination somewhat above the ground ( or mesh ). About 50 units.

The character won’t move if it involves collision.

Just did that, its not doing anything…

Ok, two things

  1. I’m assuming this in the player? ( this code )

  2. Something is coming back from the save game. Have you tried printing that to check?

Yess it is

yess it prints a vector (as intended)

That’s all I have. I assume the vector is inside something. You can definitely move a character with this code…

1 Like

Thats what i thougth, thanks for looking at it. i am still confused but will ignore it till later and come back to this problem with the hope that it is a bug that will be resolved or something like that.

There’s no bug :slight_smile:

Try just placing a cube in that location. Does it look like the player will fit?

Are you checking the vector here?

image

( is the cast working? )

the way i checked the vector was:

i just tried to give it a position vector of 0,0,2000.
Like that, It should be in the sky. but its still not moving…

And this code is IN the player? ( sorry to ramble on )


i fully understand the question, thanks for your help…!

Do you have any other code setting the player location, as part of your movement for instance?

since my player is a ball i made the movment with Add Impulse (the Coment box on top of the last screenshot)

Yup, out of ideas… :frowning:

This works with the default player characters. You might want to consider how yours differs…

1 Like

Thanks mate!

The strange thing is that it used to work for a long time and since then. the only thing that changed on the player was the parent calss. but it should work with charakters so i dont understand it…

1 Like

Hi there,
Have you ever tried to:
Add a delay after full stop
Check “teleport” in set actor location node?

Thanks. i tried both things and it did not work yet

Can you please explain the complete worflow to trigger the teleport node? Perhaps something is out of sequence.

Is your player simulating physics, or, in this case is the sphere mesh with physics enabled?

What is inside the full stop node? Because your player is now set as a character class, its character movement component might be interfering in your code.

sure, let me try:

image
so i just got rid of everithing that could stop the movement and now its a BP_KillZone that tiriggers the event Load Position inside of the BP_Player ( Player character Blueprint).

on a second project i just set up like this, it does move the character to the given position, but here its not working and i can’t find why