Help needed - editing a teleportation script

Post » Thu Apr 18, 2013 12:57 pm

I'm having to modify a teleportation script due to a mod interfering with a number of destinations. I know how to use the console to get my position (player->getpos x etc.) but is it possible to combine the console commands to get your position with one command, rather than a separate command for each coordinate? I've a lot to amend so it would save a lot of time.

Secondly, how do you determine your facing? I know it must be possible because the original script used it as a fourth coordinate, but I can't find the command.

Thanks in advance.
User avatar
Prue
 
Posts: 3425
Joined: Sun Feb 11, 2007 4:27 am

Post » Thu Apr 18, 2013 10:48 pm

In my opinion, you're doing this the time consuming way by running around the game.
Getting your coordinates in the CS is going to be faster.
I also don't think there is a console command for finding axis direction. (although for exteriors North is always 0, South is 180, etc.)

Open the cell you want, and place a NPC on the floor where you want to spawn when teleporting.
Now at the bottom of the CS you will see six coordinates, looking something like this: -159, 65, 127 [0, 0, 45]
The first three are the position placement in the cell. The three in brackets are the axis coordinates, with the last number being the direction an NPC would be facing on a 360 degree axis.

It's best to exit without saving when you're done, so you don't have references of NPCs being in the cell :wink:
User avatar
Rob Smith
 
Posts: 3424
Joined: Wed Oct 03, 2007 5:30 pm

Post » Thu Apr 18, 2013 7:27 pm

I'm having to modify a teleportation script due to a mod interfering with a number of destinations. I know how to use the console to get my position (player->getpos x etc.) but is it possible to combine the console commands to get your position with one command, rather than a separate command for each coordinate? I've a lot to amend so it would save a lot of time.
No there is not, but you only needs those coordinates if you want to return to your starting position without having to use a mark, then recall spell. You can copy and paste code from one script to another or from one part of a script to another.
User avatar
Alexx Peace
 
Posts: 3432
Joined: Thu Jul 20, 2006 5:55 pm


Return to III - Morrowind