Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help: Script for where a prim is touched.

Lance Sismondi
Registered User
Join date: 28 Apr 2006
Posts: 21
02-05-2008 09:57
Hello! I am assisting a friend that needs a script example that would communicate where a prim is touched by either an avatar or another prim.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-05-2008 10:10
CODE

default
{
collision_start(integer numDetected)
{
llSay(0, "Ouch! That hurt!");
}
}
Lance Sismondi
Registered User
Join date: 28 Apr 2006
Posts: 21
02-05-2008 10:45
Would that report where on the prim it was touched though ;)
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
02-05-2008 10:58
Are you looking for something like what's requested in http://jira.secondlife.com/browse/SVC-690 ?
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Lance Sismondi
Registered User
Join date: 28 Apr 2006
Posts: 21
02-05-2008 13:58
yep. That's the ticket! Hope they can provide this function someday..;)
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
02-05-2008 14:01
Make sure to vote for it then!

/me points to her signature for vote instructions. Feel free to vote for svc-835 while you're in there.. :)
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Jopsy Pendragon
Perpetual Outsider
Join date: 15 Jan 2004
Posts: 1,906
02-05-2008 14:30
You might be able to get halfway there with llDetectedGrab()

http://wiki.secondlife.com/wiki/LlDetectedGrab
_____________________
* The Particle Laboratory * - One of SecondLife's Oldest Learning Resources.
Free particle, control and targetting scripts. Numerous in-depth visual demonstrations, and multiple sandbox areas.
-
Stop by and try out Jopsy's new "Porgan 1800" an advanced steampunk styled 'particle organ' and the new particle texture store!
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
This thread have a script that might work for you
02-05-2008 15:25
This is an old discussion about Touch Position on Prims
/54/eb/82664/1.html