[Opensim-dev] Trying to understand llDetected* functions

Mike Mazur mmazur at gmail.com
Tue Jun 17 07:39:33 UTC 2008


Hi Dahlia,

On Tue, 17 Jun 2008 00:23:57 -0700
"Dahlia Trimble" <dahliatrimble at gmail.com> wrote:

> I'll take a shot at these from a perspective of having used most of
> them in sl scripts
> 
> On Mon, Jun 16, 2008 at 11:54 PM, Mike Mazur <mmazur at gmail.com> wrote:
> 
> <SNIP>
> 
> > What exactly do these values represent? According to
> > OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs
> > line 152, _key is "detected key" and _key2 is "owner key". What are
> > these exactly? The position, velocity, rotation and _string (name)
> > properties make sense, but the _bool and _int ones don't.
> 
> 
> llDetectedKey() returns the UUID of the agent (avatar) or object that
> was detected
> llDetectedOwner() returns the UUID of the owner of the object that was
> detected.

What does it mean to be "detected"? Let's take a simple example of a
box with a script inside that calls llDetectedKey() and
llDetectedOwner() in touch_start. Then both would return the UUID of my
avatar?

Also, how can an object "touch" another object, with some function call?

> I dont know of any llDetected() functions that return booleans.

I think I was unclear, the _key, _key2, _int, _bool, etc. variables are
defined in the llDetectParams struct
(OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs
line 152).

Thanks for the help thus far though. Things are becoming clearer.

Mike



More information about the Opensim-dev mailing list