Pussycat Catnap
Sex Kitten
Join date: 15 Jun 2009
Posts: 1,131
|
10-01-2009 23:43
I have a sculpty bench, and I want to let 3, or maybe 4 people sit on it. The bench is a single prim.
I can put together a script that allows for a single person to sit down, and I've seen items advertised a 1 prim and allowing more than 1 person to sit - but I have no idea how this is done.
Any help would be appreciated.
|
Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
|
10-02-2009 02:23
If you want to script it your self you have to do the following steps: - detected if someone is sitting on the sculpty - move the person with llSetPrimitiveParams to the correct location - detected new person is sitting - move new person to 2th location with llSetPrimitiveParams - check/move 1th is still sitting on correct location.
other way is to get the free MLP or Npose scripts from xStreetSL both can handle more then 1 sit. MLP works with sitball (think 6 max) and Npose works with llSetPrimitiveParams (no sitball)
|
Indeterminate Schism
Registered User
Join date: 24 May 2008
Posts: 236
|
All you ever wanted to know about ... but were afraid to ask
10-02-2009 05:45
Thanks for raising this one Pussycat and thanks for answering Kaylan, it's one of those things I never knew how to do but hadn't got around to finding out about.
Indulge my continued ignorance, just to be clear - The changed() event still fires each time an additional person tries to sit (or stands up)? llAvatarOnSitTarget() is no use as there can only be one sit target, but you know all the 'prims' over the original object's count are actually avatars? These are simply (re)positioned by llSetLinkPrimitiveParams()? Have I understood this properly?
|