Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Multi sit script

Shyan Graves
Registered User
Join date: 10 Feb 2007
Posts: 52
12-05-2007 08:21
Does anyone know where I can find the multi sit script, I mean the script that allowes you to seat more than one avi on one prim. I am not able to find it, sorry for bothering you. I know it was here in the forum!

Regards
Shyan
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
Mlp
12-05-2007 08:42
I think you mean the Multi-Love Pose script, or MLP. What it does, actually, is rez one or two poseballs for people to sit on, and change the pose balls by menu. You can see it in a lot of furniture, especially of a sexy nature.

It is free.

Try the new search, or search these Forums.

If that is NOT what you mean, then, what do you mean? Multiple people can sit on a large prim, if SL can find a place for them. Antoerh approach is to use multiple invisible prims. This is the same as pose balls, but without the visible clutter. Or, make them almost invisible.
_____________________
So many monkeys, so little Shakespeare.
Shyan Graves
Registered User
Join date: 10 Feb 2007
Posts: 52
12-05-2007 08:52
Thank you for the fast reply,

No I do not talk about MLP, I have that script in my collection!

Ya meaning multiple people sitting on on prim (f.e. a bench) and the script moves the avis to there sit position.

Shyan
White Hyacinth
Registered User
Join date: 15 Nov 2006
Posts: 353
12-05-2007 08:55
Sounds like you want a script that changes the sit position every time after an avatar sits down on the prim. Or will that just move the avatar already seated??
Dytska Vieria
+/- .00004™
Join date: 13 Dec 2006
Posts: 768
12-05-2007 09:08
I found this in my collection, I think I got it here or in the wiki library.

float seat;
float startseat;
integer startlinks;
integer links;
vector size;
float offset=0.75; //how far to space each seater

default{
state_entry(){
startlinks=llGetNumberOfPrims();
links=startlinks;
size=llGetScale();
seat=(size.y / 2) - 0.5;
startseat=seat;
llSitTarget(<0,size.y / 2,0.5>,ZERO_ROTATION);
}

changed(integer change){
if(change & CHANGED_LINK){
integer linksnow=llGetNumberOfPrims();
if(linksnow > links){
llSetLinkPrimitiveParams( llGetNumberOfPrims(), [ PRIM_POSITION, <0.5,seat,1> ]);
seat -= offset;
links=linksnow;
}else{
links=linksnow;
seat=startseat;
integer seated=links - startlinks;
if(seated){
integer i=1;
do{
llSetLinkPrimitiveParams( startlinks + i, [ PRIM_POSITION, <0.5,seat,1> ]);
seat -= offset;
i++;
} while(i<=seated);
}
}
}
}
}
_____________________
+/- 0.00004
Shyan Graves
Registered User
Join date: 10 Feb 2007
Posts: 52
12-05-2007 09:23
Thanks a lot Dytska,

that looks like what I am looking for, will try it!

Shyan


From: Dytska Vieria
I found this in my collection, I think I got it here or in the wiki library.

float seat;
float startseat;
integer startlinks;
integer links;
vector size;
float offset=0.75; //how far to space each seater

default{
state_entry(){
startlinks=llGetNumberOfPrims();
links=startlinks;
size=llGetScale();
seat=(size.y / 2) - 0.5;
startseat=seat;
llSitTarget(<0,size.y / 2,0.5>,ZERO_ROTATION);
}

changed(integer change){
if(change & CHANGED_LINK){
integer linksnow=llGetNumberOfPrims();
if(linksnow > links){
llSetLinkPrimitiveParams( llGetNumberOfPrims(), [ PRIM_POSITION, <0.5,seat,1> ]);
seat -= offset;
links=linksnow;
}else{
links=linksnow;
seat=startseat;
integer seated=links - startlinks;
if(seated){
integer i=1;
do{
llSetLinkPrimitiveParams( startlinks + i, [ PRIM_POSITION, <0.5,seat,1> ]);
seat -= offset;
i++;
} while(i<=seated);
}
}
}
}
}
White Hyacinth
Registered User
Join date: 15 Nov 2006
Posts: 353
12-05-2007 10:45
I tried your script it in-world...

We managed to get two avatars sit on the exact same position.
Scary!
Also we saw avatars sitting in different angles...
I think this is close to what we want, but not quite right yet...
Dytska Vieria
+/- .00004™
Join date: 13 Dec 2006
Posts: 768
12-05-2007 11:53
It's not my script :)

Here's the link that leads to the original plus more info:

/54/9c/182338/1.html
_____________________
+/- 0.00004
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-05-2007 12:18
and a slightly different version posted by strife on jira
https://jira.secondlife.com/browse/SVC-750#action_29082
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
White Hyacinth
Registered User
Join date: 15 Nov 2006
Posts: 353
12-05-2007 13:44
OK, I have looked at that original thread and at an even older one. The eldest thread has a script that does exactly what I was proposing in my first message, but it had the problem of not being able to fill in the gaps when avatars stand up again.

The script you posted here was a reaction to that, where the avatars are moved to fill up holes between them when someone stands up. But it seems the administration can get out of sync, which lead to the result I found with two avatars sitting in the exact same position.

I think the correct way to do this is to set up an administration in a list that holds the status of a number of pre-defined sit targets on your prim. Then the sit target can each time be set to an available spot (if any).

I don't have time to write that script right now, but I will do it soon. I see no big obstacles in implementing this. And I need it too!

I am not yet sure about handling the rotations though. I see ZERO_ROTATION used in every sit target in both scripts and I would expect all avatars to be facing the same way when they sit down. But that was not what I saw when I tested it in-world...
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-05-2007 22:08
From: White Hyacinth
I am not yet sure about handling the rotations though. I see ZERO_ROTATION used in every sit target in both scripts and I would expect all avatars to be facing the same way when they sit down. But that was not what I saw when I tested it in-world...

I think that is part of the assumption on how this works, that the avatars will be sitting ZERO_ROTATION relative to the root prim, it could be adjusted for various poses/positions on non-linear furniture, or rotated roots..
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -