Moving player

Post » Sun Jan 31, 2016 7:53 pm

Hi, I working on quest and I want to move player back to place where I moved him from



Player is moved after dialog, then do some another dialog and moved back to his place



I have done moving him after dialog (by Game.GetPlayer().MoveTo(Object)) but I dont know how to move him back.



Hope you will understand


User avatar
Prisca Lacour
 
Posts: 3375
Joined: Thu Mar 15, 2007 9:25 am

Post » Mon Feb 01, 2016 3:20 am

If you're using the .MoveTo() function, then you can 'record' the Player's position by moving a known-object to their location before you move them the first time. For example, back in Oblivion we'd move disabled rats, and then use that as the target for moving the Player back later.



I.E. :



Actor Property PlayerRef Auto
Actor Property MyMarkerRat Auto

MyMarkerRat.MoveTo(PlayerRef)
PlayerRef.MoveTo(MyXMarker)


;Later
PlayerRef.MoveTo(MyMarkerRat)
User avatar
Chica Cheve
 
Posts: 3411
Joined: Sun Aug 27, 2006 10:42 pm

Post » Mon Feb 01, 2016 3:34 am

Wow, thank you wery much


Its very amazing method, I was expecting something about global variables
User avatar
Chica Cheve
 
Posts: 3411
Joined: Sun Aug 27, 2006 10:42 pm


Return to V - Skyrim