Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Interesting SitTarget issue. Could be good or bad.

JackInThe Schnook
Simboarding! ^_^
Join date: 31 Dec 2005
Posts: 46
09-14-2006 10:30
I have a vehicle type thing I am working on and I found something interesting and can not figure out why this is happening.

Basically it's a skateboard. However when a person rides it they must be sure to click the parent prim to sit on. If they sit on any other prim they simply sit on it. As in nothing happens. Only when the parent is sat on will the vehicle script run.
When they sit on any others they also do not go to the SitTarget location.
It's as if the script does not activate at all.

Why does this happen?

I tested the skateboard with another script that is used in a friends ship. It normally allows the pilot to right click any prim and select fly. When they do so they sit in the seat and can fly the ship.
However when this script is put on my board that does not happen. They still must select the parent prim to fly. So that must be the design causing this?

Is there a design trick or bug that causes this to happen?
It would be great if I could be assured this will always be the case. Because with this design I could use this quirky behavior to an advantage.

But I don't want my product to break just because there might be a little fluke with the board which may or may not go away later.

Any suggestions or ideas what this might be?
Is there any LSL tricks to force the scripts in the parent prim to activate when the owner sits on any of the linked prims?
Thanks in advance.

~Jack

P.S.
This was going on before the updates by the way.
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
09-14-2006 10:53
If the sittarget is in the root prim of the linkset, it should activate whatever you try to sit on or touch. I have items which do this which I've used recently. Try delinking it and linking it again, making sure to select the scripted prim last of course.
Rich Cordeaux
Registered User
Join date: 8 May 2006
Posts: 26
09-14-2006 11:12
Did you ever have a sit target set on the other prims? They aren't erased when you remove the script which set the sit target.

Put this in a script on them: llSitTarget(ZERO_VECTOR, ZERO_ROTATION);

That should clear their sit target, so when they sit, they go to the only prim with one.
JackInThe Schnook
Simboarding! ^_^
Join date: 31 Dec 2005
Posts: 46
09-14-2006 11:25
From: Rich Cordeaux
Did you ever have a sit target set on the other prims? They aren't erased when you remove the script which set the sit target.

Put this in a script on them: llSitTarget(ZERO_VECTOR, ZERO_ROTATION);

That should clear their sit target, so when they sit, they go to the only prim with one.

IT WORKED! THANKS!
JackInThe Schnook
Simboarding! ^_^
Join date: 31 Dec 2005
Posts: 46
09-14-2006 11:30
And their supposed to be getting rid of the forums?
I would have been stuck on that for a month!
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
09-14-2006 11:56
They're not removing the content creation fora for the foreseeable future, if at all.
_____________________
Eloise's MiniMall
Visit Eloise's Minimall
New, smaller footprint, same great materials.

Check out the new blog