Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rezzing and 11GetPos in linked sets

Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
08-31-2006 20:47
Alright I give up. I went through all the functions that seemed applicable.
I have an linked set. If I edit that linked set I can see numbers on top of my screen. For Example: X = 67.81 Y = 33.33 Z = 22.22. How in the heck can I do a function cal and get those numbers?

I placed a script into the linkset and asked for it to put the numbers into the Object description like this:

default
{
state_entry()
{
llSetObjectDesc( (string)llGetGeometricCenter());
}}
Also tried 11GetPos, 11GetRootPos etc. BUt none will give me the numbers from the top of the screen. I need those numbers because when an object is rezzed like this:


neTimed()
{
llRezObject("test", llGetPos() + <0, 0, 0>, ZERO_VECTOR, ZERO_ROTATION, 42);
}

default {
state_entry() {
neTimed();
llSetTimerEvent(60.0); // generate a timer event every 1 second
}

timer() {
neTimed();
}
}

I have to guess and tweak the numbers to get it to the position I want. IF I had those numbers then I could just copy out of the objects description and paste it into the rezzind script and change it to this:


*****llRezObject("test", <67.81, 33.33, 22.22>, ZERO_VECTOR, ZERO_ROTATION, 42);
********

So FIrst off what are thos enumbers off the top of the screen. They are not the geometric center. ANd secondly how can I get the numbers that I want? I know it can be done because some rezzors have a store postion function built in.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
08-31-2006 22:11
Ah nevermind. My brain started working and I figured it out. Supposed to use 11RexAtRoot instead and get the root position. Works great.
Kiwi Alfa
Registered User
Join date: 19 Jul 2006
Posts: 9
09-02-2006 19:00
For the record, you probably already know this because you're using the function names properly in the actual code, but it's not 11GetPos, 11RezAtRoot, etc, it's llGetPos, llRezAtRoot, etc - that is, they're lowercase Ls at the start, not 1s. Think "Linden Lab".

Sorry, I couldn't help but comment on that.