Configuring Teleport Scripts

The following scripts are available for you to use in your Sansar experiences:

Teleport local

Teleports any user that collides with the scripted object to a set of given coordinates within the same experience.

To change the destination coordinates:

  1. Select the scripted object.
  2. Click the Properties button on the scripted object to open the Properties panel.
  3. Under Script Settings, enter values for Destination XDestination Y, and Destination Z.
  4. De-select the object in order to save the destination values.
teleport_local.png
Enter values for Teleport Destination X, Y, and Z.

Teleport remote

Teleports any user that collides with the scripted object to another experience.

To change the destination experience:

  1. Select the scripted object.
  2. Click the Properties button on the scripted object to open the Properties panel.
  3. Under Script Settings, enter values for Dest. Scene and Dest. Scene Owner.
  4. De-select the object in order to save the destination values.

You can find an experience's Destination Scene name and Scene Owner by copying and analyzing the destination experience's URL.

  • If the destination is listed in the Atlas, you can obtain its URL by clicking the experience's portrait to see more information, then clicking the Copy URL button to copy the experience's URL to your computer's clipboard.
  • If the destination experience is one of your projects that is not listed in the Atlas, you can access its URL in My Projects by clicking More Options  and then choosing Copy URL to copy the experience's URL to your computer's clipboard.

Once you have the destination experience's URL, you can figure out the scene name and owner's Avatar ID.  The owner's Avatar ID appears in the URL after "https://atlas.sansar.com/experiences/", and the destination scene name appears after the Avatar ID.  

For example, if an experience's URL is: "https://atlas.sansar.com/experiences/jeremy-fbcb/jeremy-s-sandbox", the owner's Avatar ID is "jeremy-fbcb", and the destination scene name is "jeremy-s-sandbox".

Teleport_remote.png
Enter a Destination Scene name and the scene owner's Avatar ID.

 

How to add a script to one of your objects

For information about adding a script to an object, see Uploading and Adding Scripts.

Was this article helpful?
6 out of 8 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.