Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Positioning on rezz

Phate Shepherd
Addicted to code
Join date: 14 Feb 2008
Posts: 96
05-18-2008 14:33
I have a linked object that when rezzed sits way too high. Basically it uses prims that use the cut parameter to hide a portion of an oval that extends under ground, but when rezzed, it uses the bottom of the invisible oval as the rez level.

Is there a simple way to automatically lower the object X meters on rez?

Thanks! (A beginning scripter, but learning!)

Although I don't need it this time, a pointer to a script that allows me to move unlinked objects as the root object is moved could come in very handy!
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
05-18-2008 16:50
Use llSetPos in the on_rez()-Event to reposition the Prims...

Or, if you're rezzing the object from within another object, use this:

llRezObject(string inventory, vector pos, vector vel, rotation rot, integer param)
Xhawkx Holden
Registered User
Join date: 1 Nov 2006
Posts: 86
05-18-2008 17:57
you can use this script... just set the lowerAmount


default{
on_rez{
float lowerAmount=.5;
vector pos=llGetPos();
llSetPos(pos.x,pos.y,pos.z-lowerAmount);
}
}
Phate Shepherd
Addicted to code
Join date: 14 Feb 2008
Posts: 96
05-18-2008 19:33
Thank you all... will that carry all the linked prims along for the ride?

I'll give it a try!