How to use Teleport while preserving rotation?

I’m trying to teleport to a specific vector, but to try and not affect the rotation of the player I’m teleporting because it’s pretty jarring and doesn’t work for what I’m trying to do.

 
The options for vector are Rotation, or Rotation and Translation, there’s no option for just Translation. Basically I’d just need to teleport to a specific location without rotation. Is there a workaround for this?

 
While I’m at it, how do I offset the position of a vector on one axis?

Unfortunately, there’s nothing built into the teleport action to face the player in certain direction - it just sets the players up/down look angle to 0. It’s a little inconvenient, but you’ll have to use a variable to save the players facing direction just before they are teleported, and then face them after the teleport. Something like this:

Set PlayerVariable(A, FacingDirection(EventPlayer))
Teleport(EventPlayer, Vector<x,y,z>)
SetFacing(EventPlayer, PlayerVariable(A, EventPlayer))

Let me know how this goes for you. :slight_smile:

2 Likes

Well the thing is I’m trying to constantly move the player… what ended up happening is that you could no longer turn at all xD

A few other options that affect movement would be:

  • Start / Stop Accelerating
  • Start / Stop Throttle
  • Apply Impulse

Each of those would allow you to turn while still forcing movement.