Move player to point

Post » Wed Jun 20, 2012 7:36 am

Hi.

Is it possible to move the player to a certain point? -Almost like CoC, but I want to define a certain point to faster get around.
User avatar
brenden casey
 
Posts: 3400
Joined: Mon Sep 17, 2007 9:58 pm

Post » Wed Jun 20, 2012 4:00 pm

In a script:

Game.GetPlayer().MoveTo(ObjectRef Target)
User avatar
Arrogant SId
 
Posts: 3366
Joined: Sat May 19, 2007 11:39 am

Post » Wed Jun 20, 2012 2:01 pm

Would this be possible to make in a .bat file so that I can use it from the console?
User avatar
Robert DeLarosa
 
Posts: 3415
Joined: Tue Sep 04, 2007 3:43 pm

Post » Wed Jun 20, 2012 7:59 am

The console command is player.MoveTo(Target, x, y, z) The X, Y, Z is optional if you are moving the player to a targeted ObjectReference and will offset the player by x, y, z amount from the target. No need to create .bat file to add the new console command.

EDIT:

Console command- http://www.creationkit.com/MoveTo
Papyrus function - http://www.creationkit.com/MoveTo_-_ObjectReference
User avatar
Jerry Cox
 
Posts: 3409
Joined: Wed Oct 10, 2007 1:21 pm

Post » Wed Jun 20, 2012 8:24 am

How will the console know what the Target is?
For example if I place a MarkerHeading in the middle of the Wilderness in my mod, how can I make the player move to it from within the game using the console?
User avatar
Mandi Norton
 
Posts: 3451
Joined: Tue Jan 30, 2007 2:43 pm

Post » Wed Jun 20, 2012 4:17 pm

You would need to get the FormID of the ObjectReference and pass that to the console command. If you already have specific locations in mind it would be easier to write a magic effect and attach it to a spell than to use the console.
User avatar
renee Duhamel
 
Posts: 3371
Joined: Thu Dec 14, 2006 9:12 am

Post » Wed Jun 20, 2012 1:16 pm

But, from the sound of it, you want to be able to move to a Wilderness cell more easily... do you know you can use cow (center on world) for Wilderness cells?

For example, "cow Tamriel 0,0" in the console will bring you to the 0,0 coords of the Tamriel worldspace (dead center of the world map).

Interestingly, I found an easter egg last night when centering on 0,0. When you arrive at 0,0, you are standing on a box that is seemingly in the middle of a field with no purpose but to perhaps mark the center of the map.
User avatar
MarilĂș
 
Posts: 3449
Joined: Sat Oct 07, 2006 7:17 am


Return to V - Skyrim