Which properties do I need to set?

Post » Tue Jun 19, 2012 1:17 am

[size=4]Scriptname TeleportscriptAezeal extends ObjectReference [/size][size=4]ObjectReference Property MyMarker auto[/size][size=4]Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)[/size][size=4]if (akNewContainer == Game.GetPlayer())[/size][size=4]akNewContainer.MoveTo(MyMarker) [/size][size=4]EndIf[/size][size=4]EndEvent [/size]

I was given this script (I admit) and it should teleport me to a certain marker each time I pick the item this script is on up from the floor.
I have set the MyMarker property (to the correct marker in the correct cell).

Still it doesn't work.

I was wondering about the event line: do I need to set more properties or something else? Don't I need to set the item that is being moved (even though it's the thing the script is on)?


Or would you use a different script? (i've tried others but none worked)
User avatar
Jessica Thomson
 
Posts: 3337
Joined: Fri Jul 21, 2006 5:10 am

Post » Tue Jun 19, 2012 4:53 am

Have you given MyMarker a value in the properties editing area of the item containing the script? You will need to assign it to the item you want to recall to.
User avatar
Rude Gurl
 
Posts: 3425
Joined: Wed Aug 08, 2007 9:17 am


Return to V - Skyrim