Jump to content

Targeting ObjectReferences in Scripts


thirteenoranges1

Recommended Posts

Basically, I'm working on a mod that involves teleporting the player to a specific location, while not in a quest.

 

I looked for similar functions already in the game, and found what seemed like a simple GetPlayer() MoveTo (object) in the Azura deadric quest.

 

However, the "object" there is part of the quests Alias stuff (which I still don't quite understand) and I cannot find a way to reference a specific ObjectReference in another cell as a target for the MoveTo function.

 

Does anyone have any experience with this? Is there a way to target specific ObjectReferences or is there some sort of workaround I haven't thought of?

 

Any help would be greatly appreciated,

 

Thanks.

Link to comment
Share on other sites

Have you tried declaring the object as a property, then going to properties and looking for the object itself ? Im missing more information here, so if I understand this correctly you want the object as a target for the player to move to or rather an object that when the players activates, it moves the player to a different cell?
Link to comment
Share on other sites

Not really, for example you go in the script and define ObjectReference property MyObject auto, then you close the script, go to the window where in the right side you see Add/Properties/Remove, select your script, go to properties, and there you should see "MyObject" which is the one we created on the script, select it, click on edit value, then you'll see 2 options that are pretty obvius, one is the the cell (where the object is) and the other the Reference, the name of the object you want to move to.

It kind of helps having the same name as the object when you declaring, you can click on autofill and it finds you the reference directly without having you to look for it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...