Jump to content

Walk through portal


Spudscorner

Recommended Posts

Thanks for the script but I am having one problem.

 

when ever I try to save the script the CS gives me an error message that states

 

" Invalid Object reference'zzStargate2' for parameter ObjectReferenceID "

 

player.moveto zzStargate2 2072,1711,6110 is the command I am using

 

Please help this is driving me nuts. I have tried the cell id, the marker id and every other id I can think of but the script will not save. What am I doing wrong?

 

Spudscorner

Are you using player.moveto <marker> or player.movetomarker <marker>? Also, are both within the same mod? At any rate, when supplying an object, and not a cell, you don't need to include positioning.

 

You may also want to considder just having the trigger box activate the portal, and then not having to worry about having to specify a specific location within the script (this way the portal can also be used like a standard doorway). But this can become an issue if you want a single gate to link to multiple destinations based on specific parameters.

 

It doesn't seem to matter if I use

player.movetomarker zzSGRef1

or

player.moveto zzStargate2 2072,1711,6110

 

i'm confused as hell now

 

Spudscorner

Link to comment
Share on other sites

It turns out i'm an idiot. If you use the player.movetomarker command you have to have a check mark beside "Persistent Reference" in the markers settings.

 

Thanks for your help I do appreciate it.

 

Cheers

Spuds

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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