Teleportation spell script

Post » Mon Jun 18, 2012 1:28 pm

Hi,
I created a level and I need to create a spell, that would transport me to this location, and then back. Got any ideas? Thanks :)
User avatar
BlackaneseB
 
Posts: 3431
Joined: Sat Sep 23, 2006 1:21 am

Post » Mon Jun 18, 2012 7:10 pm

what you would do is place a Activator where you would want to save your location, then when your ready to go back agian you move your character back where the Activators location is

Small example that is not finished

To start the save location
ObjectReference save_location = player.PlaceAtMe(ActivatorProperty)save_location.MoveTo(akCaster)

Now to recall back to your location when your ready to teleport

akCaster.MoveTo(save_location)

You will have to clean up your code as well by doing so

save_location.Disable()save_location.Delete()
User avatar
Lilit Ager
 
Posts: 3444
Joined: Thu Nov 23, 2006 9:06 pm

Post » Mon Jun 18, 2012 5:18 pm

Thanks :)
User avatar
Anna Beattie
 
Posts: 3512
Joined: Sat Nov 11, 2006 4:59 am


Return to V - Skyrim