|
zeng2008 Ling
Registered User
Join date: 15 Oct 2008
Posts: 2
|
12-24-2008 21:49
Hello Everyone,
I want to write a self-duplicate script.
I created a object named “test” and drop it in its content, I want to rez a copy of “test” from its content at the same position when I click it.
My script as follows:
vector pos; default { touch_start(integer total_number) { pos=(llGetPos()+llGetGeometricCenter()); llRezObject("test",pos,ZERO_VECTOR,ZERO_ROTATION, 0); } }
But when I run the script, I found there are offsets compare with the original position. How can I avoid this?
in a word, my question is: How to rez linkset accurately?
|
|
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
|
12-24-2008 22:38
Maybe llRezAtRoot("test",llGetPos(),ZERO_VECTOR,ZERO_ROTATION, 0);
_____________________
-
So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.
I can be found on the web by searching for "SuezanneC Baskerville", or go to
http://www.google.com/profiles/suezanne
-
http://lindenlab.tribe.net/ created on 11/19/03.
Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard, Robin, and Ryan
-
|
|
zeng2008 Ling
Registered User
Join date: 15 Oct 2008
Posts: 2
|
12-25-2008 06:26
SuezanneC,your ideal worked, thank you very much!
|
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
12-25-2008 11:36
Beware of doing it too often - objects that self-replicate quickly will trip the gray goo fence and the sim will shut your object down..
|