Jump to content

Teleport on Colliding?


Loki Eliot
 Share

You are about to reply to a thread that has been inactive for 4548 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

there is a sneaky way to do it... capture a touch (needed for map destination) and then enter a poling loop inside of the touch event, looking at the an externally settable property like a prim name or description... then have a separate trigger script that sets the property you are looking at in the first, whenever the event of your choice occurs. the first script then exits the polling loop, calls the map, and then clears the set property (if it can), or either stores it (so it can detect a change) or sends a message to the second script to clear it.

this is the exact method used by multiple "stargate" map teleport devices, the click is captured on the dialing device, but the map trigger only happens when you walk through (collision event)

ETA:
the same method can be used to gather data from other sources (like dataserver events to get the coordinates from a landmark in object contents)

Link to comment
Share on other sites

it could be used to trigger llMapDestination yes... which isn't quite what you are saying....

 

to be whisked away auto-magically upon collision without any user feedback, the only method I'm aware of is trap the avatar and drag them via physics (or orbit/push them)

Link to comment
Share on other sites

I am intrigued by Void's description of a two-script solution, but it still seems like a clunky way to do things.  It means that the user has to do three things in order to TP to the skybox:

(1) Click the door/portal to activate script #1 with its polling loop.

(2) Collide with the door to activate script #2 to change a prim property of the door, break the polling loop, and trigger llMapDestination.

(3) Click the "teleport" button in the map display that opens.

That's a lot of work for a simple TP.  There are much easier ways to get to a skybox with a standard sit TP .  You don't get to do it with a collision, but you can include other visual effects that don't involve making the user activate more than one trigger (See https://marketplace.secondlife.com/p/Magic-Door-Teleporter/2749996 or https://marketplace.secondlife.com/p/Curio-Obscura-Anywhere-Doors/615009 , for example).

Link to comment
Share on other sites

  • 2 months later...
You are about to reply to a thread that has been inactive for 4548 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...