Background for Skyrim SE
Member of the Game script
voidfunctionFastTravel(ObjectReferenceakDestination)NativeGlobal

Description

Wiki Description

Fast-travels the player to the specified ObjectReference's location.

Documentation Comment

Fast-travels the player to the specified object's location


Caveats

CK Wiki - Notes

  • Scripted fast-travel does not save the player's game.
  • If akDestination is a map marker with a fast travel marker set up via linked reference, this function will use that fast travel marker.
  • In some cases, a loading screen will play but the player will stay on the same spot.
  • This function doesn't always work as intended. An alternative is using ObjectReference.MoveTo(...). Due note however that MoveTo does not advance time.
  • Neither FastTravel nor MoveTo will work properly if the player is currently ragdolling. If the map marker is in another worldspace, the player will go to their current coordinates in that worldspace; if the marker is in the same worldspace, the player's physics will glitch and carry them toward the marker until they stop ragdolling. To avoid these problems, you should call ObjectReference.ForceRemoveRagdollFromWorld() on the player before trying to fast-travel.

Parameters

ObjectReferenceakDestination

CK Wiki Description

The object to fast travel to.


Examples

; Fast-travel home
Game.FastTravel(HomeMarker)

Auto-Generated Example

ObjectReference myObjectReference__akDestination

Game.FastTravel(myObjectReference__akDestination)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.