Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

vehicle unsit

Robin Peel
Registered User
Join date: 8 Feb 2005
Posts: 163
08-11-2006 10:24
Hello,
I have a non physics vehicle. I want it to be a one seater. I don't want people sitting on the sides of it going for a ride with me, not if I don't want the too. This has really frustrated me a lot.
Is there any way to make it so that if somebody is sitting on the wing or something it would be an easy step to unsit them? I don't mind if i have to put a new script in all 226 parts of it. or update the ones that are already in it.
Thank you all.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
08-11-2006 13:04
All you have to do is call 'llSitTarget()' (only on one prim of the vehicle).
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
08-11-2006 13:43
From: Hewee Zetkin
All you have to do is call 'llSitTarget()' (only on one prim of the vehicle).

Not so. You need to use a second prim with a higher link number than the first that has a sit target set and specifically unsits a further avatar sit.
_____________________
http://slurl.com/secondlife/Together
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
08-11-2006 14:19
Ah. Interesting. Okay, the example in the Wiki does that. I guess I just presumed the completion of the logic they started but did not finish:
From: someone
In a vehicle (or any object) with multiple seats (each seat has a script that sets a sit target), the following method determines which sit target an avatar ends up at:

If the primitive the player clicked on has a sit target and that sit target is not full, that sit target is used.

If the primitive the player clicked on has no sit target, and one or more other linked objects have sit targets that are not full, the sit target of the object with the lowest link number will be used.

is that the avatar cannot sit at all. So what is the REAL behavior for the condition where the primitive clicked has no sit target and all of the other prims with link targets are full, and when the primitive clicked on has a sit target but it is full? We should really complete the logic on the Wiki page if we can figure it out.