Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Which side got touched?

Thom Wozniak
Registered User
Join date: 13 Nov 2007
Posts: 15
12-13-2007 07:23
Is there a way to tell which face of a prim was touched to start the touch_start event? I can't see anything in llDetected() that seems to do that.
Cherry Hotaling
Registered User
Join date: 25 Feb 2007
Posts: 86
12-13-2007 07:53
Im not 100% sure but im fairly positive this is a prim by prim thing. That you cannot get a touch event per face of a prim.

-Cherry Hotaling
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
12-13-2007 08:02
nope it cant be done, only way to do that is to add a prim to each side of the object and when you touch it it dose whatever
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
12-13-2007 10:07
This is, by the way, flagged as an enhancement and has been definitely noted by LL - I think the proposed function was called llDetectedSide.

Yes, I know that could mean any length of time before it occurs if ever, but I thought I would add a hopeful note. I imagine it's somewhere on the Jira....

In the meantime I suggest that you use different thin prims on each side (as Mrc suggests) and use llDetectedLinkNumber - inefficient, I know, but one has to work with what one has.
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!

http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal

http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
Okiphia Rayna
DemonEye Benefactor
Join date: 22 Sep 2007
Posts: 2,103
12-13-2007 22:02
from the sounds of it, this script does it somehow

/15/de/158885/1.html
_____________________
Owner of DemonEye Designs Custom Building and Landscaping
Owner and Blogger, Okiphia's Life
http://okiphiablog.blogspot.com/
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
12-14-2007 03:55
From: Okiphia Rayna
from the sounds of it, this script does it somehow

/15/de/158885/1.html


Nope, that isn't what that script is doing. All that does is add a texture to a different side of the prim each time you touch it, starting with side 0. It is, as the name says, an "side announcer", not a "side detector".
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-14-2007 04:22
depending on your application you could cheat it though.... for instance a door that swings both ways... have it get the position of the touching av, compar to it's own and swing away

same trick should work for collisions too
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Okiphia Rayna
DemonEye Benefactor
Join date: 22 Sep 2007
Posts: 2,103
12-14-2007 08:27
From: Jesse Barnett
Nope, that isn't what that script is doing. All that does is add a texture to a different side of the prim each time you touch it, starting with side 0. It is, as the name says, an "side announcer", not a "side detector".

ah damn, misunderstood then. Was under the impression that the touched side was the one that was announced and changed color.
_____________________
Owner of DemonEye Designs Custom Building and Landscaping
Owner and Blogger, Okiphia's Life
http://okiphiablog.blogspot.com/
Thom Wozniak
Registered User
Join date: 13 Nov 2007
Posts: 15
12-14-2007 09:00
Oh, well. I guess I'll have to wait for the update, whenever that comes out.
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
12-14-2007 09:26
Vote for http://jira.secondlife.com/browse/SVC-519 !!

From: SVC-519
llDetectedFace for detecting the face of a prim touched by an avatar
Similar semantics as llDetectedLinkNumber, just return the face-number instead the prim-number the avatar clicked on.
Detailed description: http://wiki.secondlife.com/wiki/LlDetectedFace
Renee Roundfield
Registered User
Join date: 10 Mar 2006
Posts: 278
12-14-2007 21:59
It would be possible on a 5 x 5 grid to achieve a double click routine using 10 prims (5 vertical and 5 horizontal) to replace 25. The first click would shift the prim back and record the horizontal value. The second click would register the vertical value and select the face.

Just thinking how that would save prims on one of my favorite games in SL.
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
You could use temp on rez...
12-15-2007 10:48
Use a timer to repeated rez N temp prims. Each one would have an id. When touched, they send a message to the master brain prim.

This would avoid prim limits, and not be a serious violation of the prim limits unless N gets unreasonably large.
_____________________
So many monkeys, so little Shakespeare.