Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

~ Why is this simple script failing when ran? ~

Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
01-09-2008 02:14
<<Removed>>
I received an IM about this, and I agree with what was said. Showing a script like this to the general public is not a good idea.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-09-2008 02:28
Tip of the day: don't play with grey goo.

In any case, llGetGeometricCenter() is relative to the root prim. Assume for the moment that it is <0, 0, 0>. Then it would fail for the same reason that literal vector does: too far from the prim/object center (interpreted in the wrong reference coordinate frame).
Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
01-09-2008 02:36
If I was playing with gray goo, i'd sure the heck not script the parent to die.
This is a proof of concept script AKA to see if it can be done.

What's a good workaround to get a copy rezed in the exact same place as the parent?
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
01-09-2008 02:42
float offset = 0.1;
llRezObject(llGetInventoryName(INVENTORY_OBJECT,0) , llGetPos() + <0,0,offset>, <0,0,0>, llGetRot(), 0);

adjust offset if the positions do not match.

And there will be much rejoicing.
Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
01-09-2008 03:29
<<Removed>>
I received an IM about this, and I agree with what was said. Showing a script like this to the general public is not a good idea.
Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
01-09-2008 03:54
<<Removed>>
I received an IM about this, and I agree with what was said. Showing a script like this to the general public is not a good idea.