When I press the “E” key it puts my character in a chair. it works with simple logic. but if my character is moving it teleports to ridiculous places. Probably because of the movement of the character. is there a way to stop the character first and teleport or is there a simpler method?
This could be because of your character’s CAPSULE COMPONENT (assuming they have one).
You can test this hypothesis by exposing the CAPSULE COMPONENT by making it both VISIBLE and NOT HIDDEN IN GAME.
If they do have one, you’ll need to attach the MESH and not the CAPSULE COMPONENT (attaching the entire ACTOR will attach the CAPSULE COMPONENT as well, so you’d have to expose the MESH vaiable), assuming you want to have the animation be this free.
However, a better solution would be to disable the interaction while the player is in the air, so, “Is_Jumping?” needs to be FALSE.
Thank you for your valuable time. I have tried what you said before, unfortunately it didn’t work. Turning off interactivity was affecting the mechanics of my game so I didn’t do that either. but I solved the problem.