Create a marker and then use it to with moveto

Post » Thu Jun 21, 2012 6:29 am

I am working on one portal in my mod that I would like to retrieve the actor after a set time. I need to know how to placeatme the actor a marker or headermarker that then I can move the actor back to after the time runs out using moveto How to I interchange the types to accomplish this?
User avatar
Louise
 
Posts: 3407
Joined: Wed Nov 01, 2006 1:06 pm

Post » Thu Jun 21, 2012 1:17 pm

here are the main components of what you'll need, you can figure out how to assemble the rest, since i have no idea what kind of event you are using



Static Property XMarker Auto

ObjectReference Property RecallPoint = None Auto

Float Property Timer Auto



RecallPoint = Game.GetPlayer().PlaceAtMe(XMarker)

RegisterForSingleUpdate(Timer)

Event OnUpdate()
Game.GetPlayer.MoveTo(RecallPoint)
RecallPoint.Delete()
RecallPoint = None
EndEvent
User avatar
Kelsey Hall
 
Posts: 3355
Joined: Sat Dec 16, 2006 8:10 pm

Post » Thu Jun 21, 2012 11:06 am

Thanks You should be called Script Genius , Man... You know this stuff well.
User avatar
Miranda Taylor
 
Posts: 3406
Joined: Sat Feb 24, 2007 3:39 pm


Return to V - Skyrim