Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llDetectedGrab() and sensors

Plaga Fool
Registered User
Join date: 22 Aug 2004
Posts: 26
01-13-2005 11:13
Hello.

I am trying to figure how to use llDetectedGrab to get the drag offset of the object the script is IN. If i read corretly the wiki llDetectedGrab uses an int wich is the index of a previously detected object/agent... :

From: someone
All llDetected* functions have one integer parameter in common, which is an index of the found targets of a sensor, touch, or collision event


So i understand that first i need to detect the object with a sensor to be able to use llDetectedGrab , right?

I am not sure how to do that :-\ i think i understand how to do it to detect other objects around the scripted one, objects that collide with me, agents that touch me etc..

But how to use a sensor inside an object to detect the object itself to be able to use the detectedgrab? isn't there a better way to do it?


Thank u very much for your time and help
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
01-14-2005 04:10
The llDetected* functions aren't just for sensors, they're for any event that has a num_detected (integer) parameter. Typically you'd use llDetectedGrab in a touch() event.
_____________________
Plaga Fool
Registered User
Join date: 22 Aug 2004
Posts: 26
01-14-2005 11:45
Thank u..