Jump to content

Papyrus - Actor Teleportation


Falconsflight

Recommended Posts

Well if the activator is either a ring or piece of armor you would do this..

 

ObjectReference property ObjectToTeleport auto
Event OnEquipped(Actor akActor)
Player = Game.GetPlayer()
Player.MoveTo(ObjectToTeleport)
endEvent

You need to create an object wherever you want to teleport, then go to the script properties and select that object.

If the activator is an object, any kind of object you can attach a script, its basically the same but instead of OnEquipped() use OnActivate().

You can check other functions aswell, you have a SetPosition which takes world cords, you also have the Translate function, which instead of teleporting instant, you can translate the player through the air to the position you want at given speed.

Link to comment
Share on other sites

  • 1 year later...

Just use OnActivate, you could also use OnSleepStart, and OnSleepStop.

 

OnActivate

http://www.creationkit.com/OnActivate_-_ObjectReference

 

OnSleepStart

http://www.creationkit.com/OnSleepStart_-_Form

 

OnSleepStop

http://www.creationkit.com/OnSleepStop_-_Form

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...