Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Touching texture to start script

Asteroid Indigo
Registered User
Join date: 29 May 2008
Posts: 2
01-21-2009 02:48
I have an object with multiple textures (a message board with photos) and I would like to direct visitors to different URLs by touching each texture/photo. I have a script that directs you to an URL by touching the object but I can't manage multiple URLs within the same object.
Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
01-21-2009 03:03
I'm assuming your textures each are on a different object on the board. In this case you would put a script in each object with the appropriate URL. Even if they are linked each will give its own URL as per the script inside the object with the texture on it.
Asteroid Indigo
Registered User
Join date: 29 May 2008
Posts: 2
01-21-2009 03:17
Actually the board is the object with differents textures. When I put a script in one part of the object with a certain texture, it works as it shoud - it offers directing to the URL only when touching that specific part of the object. But when I put another script in another part of the object with a different URL, the other won't work.
Lennard Lopez
Registered User
Join date: 9 Oct 2007
Posts: 52
01-21-2009 06:37
You will have to do it in just 1 script. Check the face of the prim(llDetectedTouchFace(0) and go to the right URL for that face.