Why do I fall through the floor when teleport

When i do a teleport and my actor is an Pawn i do not have a problem but when i change my actor to a character i always fall true the floor. The BP set the teleport location of the actor on the worldposition of the motioncontroller and for SetActorLocation i use TPLocation with the relative location X/Y of the camera and leave Z on zero. When i set relative location of Z on 15cm or higher, i not fall true the floor after teleport but i am flying above the floor.
I try to change my capsule colision to block all, also place the root of my controllers and camera under my capsule so the bottom of the capsule is not under my floor when i teleport but nothing helps.

i sounds like a issue with the origin of the character. the characters origin is at the center of the capsule so it is possible that if you dont compensate you could fall through the floor. why are you adding the camera location? that doesnt seem necessary.

Hello, thanks for answer. I add the camera because its the method that i use when the actor was a pawn and not a character. So i have to leave the cameraroot (sceneroot) from the camera in the middle of the capsule in viewport and in the function “Teleport to Location” use the Capsule as target for the relative location node of X and Y? Or how?

i have no idea what that last part was meant to say. anyway though it appears your adding a relative location to a world location so it wont give the result your looking for. also if your camera is at the center of the character then it would be adding zero to all axis anyways so its not needed. what i would be doing instead is to add the capsule half height to the target location z axis which should solve your falling through the ground issue.

So, I use to have the same problem when I would teleport to an actor variable.

Unless you’re putting the Teleport code inside the Level/Map Blueprint and using a Trigger Box, you need to “Get actor Class” then choose the actor you want to teleport to, I recommend also promoting it to a variable.

There’s another “Get Something Class” , but I cant remember what it is lol

But this method works for teleporting to Actors, as seen in the image attached.