Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

getting an object number?

Boris Eebus
Registered User
Join date: 8 Feb 2008
Posts: 45
05-09-2008 14:27
I want to use this script to point at another prim, I need to alter the llDetectedPos(0) to point to the prim id number, any idea how to find this out???


default
{
state_entry()
{
llSensorRepeat("", "", AGENT, 20.0, PI, 0.2);
}

sensor(integer total_number)
{
llLookAt( llDetectedPos(0) + <0.0, 0.0, 1.0>, 3.0, 1.0 );
}
}
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
05-09-2008 14:34
llDetectedKey(0)?
_____________________
From Studio Dora
Boris Eebus
Registered User
Join date: 8 Feb 2008
Posts: 45
05-09-2008 14:52
I can get the UUID, am I going along the right lines? or have I gone completely wrong?

I'm trying to get one prim to face another one, this one is moveable
Kidd Krasner
Registered User
Join date: 1 Jan 2007
Posts: 1,938
05-09-2008 17:33
What makes you think you need the UUID? Why isn't llDetectedPos(0) exactly the thing you want?

When you say you need one prim to face another, do you really mean objects? Or do you mean specific prims within a multiprim object?