Jump to content

problem with teleport scripting


padir

Recommended Posts

hi, im trying to creat a spell that teleports a box to where my targetcross points at and im having a problem with the scripting.

my questoin is how can i make a certain object in the game (my box) a property so i can change its location using the spell script?

 

and will the possessions inside the box will stay there?

Link to comment
Share on other sites

To create a property, add this line either at the beginning or the end of your script:

 

ObjectReference Property xxxxx Auto

 

  1. Replace the "xxxxx" with whatever you want to name the property as, such as TeleportBox or whatever you may want.
  2. To make your actual box the property, you'll first need to either make a dummy cell to put it in, or if you have a specific place for it to be while the spell is inactive then put it there.
  3. After you get done placing your box, open up the properties button in the scripts tab of your spell, click on the property you named, and then click edit value.
  4. You can either find the cell and object in the lists provided, or (once you have the render window loaded to the cell with the box in it) click on the button that says "Pick in Reference Window" and then double click on your box. Make sure you have the box ALREADY seen in your reference window, otherwise you'll be stuck until you select something, then change it.

 

 

Hope this helped! :thumbsup:

Link to comment
Share on other sites

thnks it did help!, but now im facing another problem:

i just cant find the right function for the script, i tried the MoveTo and Movetointeractoinlocation functions and it wont compile....

then i gave up on the teleporting and just tryed the Activate function but it was the same....

my last try was this:

Box123.Activate(Game.GetPlayer(), true)- i found it in the wiki thing...

and again thaks 4 the help!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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