Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Moving objects "permanently"?

Tizzy Calliope
Mew!
Join date: 27 Feb 2005
Posts: 38
03-31-2005 10:59
Okay, so, I made a vehicle object -- a sort of high-tech motorbike thingy. The problem is, when I rez it in on a flat surface, it's sort of stuck "into" the ground and won't move. I can manually move it up using "Edit", but when I put it back into my inventory and rez it in again, it's stuck back in again. Anyone know how/if I can fix this?
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
03-31-2005 12:15
No way that I'm aware to change the way SL decides where an object is gonna rez...
however, the following should help:

CODE
default
{
on_rez(integer n)
{
llSetPos(llGetPos() + <0.0, 0.0, 0.25>);
}
}
That makes the object move itself up 1/4 meter when it's rezzed.
_____________________
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
03-31-2005 12:38
careful. I've done this for furniture and vehicles... if they are above 512 meters they will drop down to 512 meters. Maybe not a common thing, but put in an if (pos.z < 512.0) {
_____________________
Tizzy Calliope
Mew!
Join date: 27 Feb 2005
Posts: 38
03-31-2005 15:11
So, something like:
CODE
default
{
on_rez(integer n)
{
if (pos.z < 512.0) {
llSetPos(llGetPos() + <0.0, 0.0, 0.25>);
}
}
}
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
03-31-2005 16:01
Actually, like:
CODE
default
{
on_rez(integer n)
{
vector pos = llGetPos();
if (pos.z < 512.0) llSetPos( pos + <0.0, 0.0, 0.25>);
}
}
(And, oopsie, I forgot about that lil cavat. :o )
_____________________
Tizzy Calliope
Mew!
Join date: 27 Feb 2005
Posts: 38
03-31-2005 16:45
Kay. Dang, I really ought to learn how to use the script. n.n;

And I put that in its own Script file on the object?
Eep Quirk
Absolutely Relative
Join date: 15 Dec 2004
Posts: 1,211
04-03-2005 22:45
Odd because I have exactly the OPPOSITE problem whenever I rez my Smurf house: it's always a few meters ABOVE ground--even if it's perfectly flat. :/ And moving it down or rotating it always manages to screw something up--even on linked prims! Grr...
Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
04-04-2005 08:26
just a thought from the building side.....i think the position it rezzes in depends on the size and position of the parent object of the linkset. like if you cut or dimple the parent prim it will rez in a position like the cut part is still there.

so you might look at what you built and see if the position of the parent is making it rez in the ground.
_____________________
Zuzi Martinez: if Jeska was Canadian would she be from Jeskatchewan? that question keeps me up at nite.
Jeska Linden: That is by far the weirdest question I've ever seen.
Tizzy Calliope
Mew!
Join date: 27 Feb 2005
Posts: 38
04-13-2005 20:03
Hmm ... maybe lowering the parent prim might work? (Although that might mean the rider would be sitting "through" it ...)

Also, I noticed that it's not so much being on top of flat surfaces (it worked just fine in a flat sandbox) as much as being on top of other objects that cause this. I even set a "hover" height (which had the side-effect of making it float on top of water) ...
Tizzy Calliope
Mew!
Join date: 27 Feb 2005
Posts: 38
04-14-2005 11:34
Okay, I've tried lowering the parent object, but it's still rezzing at the same height, and still getting stuck when I try to start it up on top of an object ... not even giving it a "hover height" works.