|
Aaron Levy
Medicated Lately?
Join date: 3 Jun 2004
Posts: 2,147
|
07-04-2006 14:40
I have a stadium that seats 40. Is it possible to have llSitTarget put a person in one of the seats randomly when they choose "Sit" anywhere on the linked object? And then when 40 people are seated, it just says, "Standing room only" or something?
I've seen cars that sit people in seats based on when they get in, and was wondering if this could be done on a larger scale like this?
Thanks!
|
|
Jesse Malthus
OMG HAX!
Join date: 21 Apr 2006
Posts: 649
|
07-04-2006 16:04
You would have to do something in the changed event to switch the seat position/ like: vector currentseat; list seatpositions = ["populate me!"]; default{ ... changed(integer mask){ if(mask & CHANGED_LINK && llAvatarOnSitPos() != NULL_KEY){ //remove currentseat from seat positions //Get a random seat //set the sit target to random seat } } }
|
|
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
|
07-04-2006 16:13
From: Aaron Levy I have a stadium that seats 40. Is it possible to have llSitTarget put a person in one of the seats randomly when they choose "Sit" anywhere on the linked object? And then when 40 people are seated, it just says, "Standing room only" or something?
I've seen cars that sit people in seats based on when they get in, and was wondering if this could be done on a larger scale like this?
Thanks! http://secondlife.com/badgeo/wakka.php?wakka=llSitTargetscroll down to "Linked Objects With Multiple Sit Targets" sounds like you'd need to have sit target set on each of your 40 seats, and nowhere else. Guessing the prim link number is derived from order you click on them before you link your item together, so for 'random' appearance see if selecting your seats in non-linear order before you link them does the trick? ^^;;
|
|
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
|
07-04-2006 21:21
You could periodically have your stadium seats unlink themselves from the stadium and then relink back (as children) after a random delay. The link order determines the sit target used unless an avatar selects a particular prim. You could prevent avatars from explicitly picking a seat by putting the prims containing the sit targets completely within the stadium seats.
|
|
paulie Femto
Into the dark
Join date: 13 Sep 2003
Posts: 1,098
|
also remember
07-04-2006 21:24
sittargets become properties of a prim. they remain even when the script that set the sittarget is removed. 
_____________________
REUTERS on SL: "Thirty-five thousand people wearing their psyches on the outside and all the attendant unfettered freakishness that brings."
|
|
Kanara Quonset
Registered User
Join date: 25 May 2006
Posts: 8
|
07-05-2006 10:11
The other suggestions here are good.
I think the way I'd implement this is as an object you sit on at the entrance that then uses WarpPos to zip into position. The seat objects would communicate with a coordinator that would decide where to seat someone. Whenever someone stands up, the seat they stood up from would let the coordinator know that position is now available, then disappear.
|
|
Travis Lambert
White dog, red collar
Join date: 3 Jun 2004
Posts: 2,819
|
07-05-2006 13:20
From: Aaron Levy I have a stadium that seats 40. Is it possible to have llSitTarget put a person in one of the seats randomly when they choose "Sit" anywhere on the linked object? And then when 40 people are seated, it just says, "Standing room only" or something?
I've seen cars that sit people in seats based on when they get in, and was wondering if this could be done on a larger scale like this?
Thanks! If you check out the Wingo side of the Shelter, there's a seating area up there that operates on a similar principle that you're asking about. If an avatar clicks on any prim in the link set that does not hold a sit script, they sit at a 'random' seat. If an avatar clicks on the seat cushion itself (which holds the sit script), they sit in that seat specifically. This feature for us at least, was an unintended bug. But its turned into something useful/annoying depending on your perspective. In short - make sure that only the child prims have sit scripts, and the parent prim does not. Then see what happens when you sit Edited to add: Just from my own experience, I get more complaints about the 'random seating' than kudos. It is nice on the one hand getting folks to mix up & interact, but human nature makes friends want to sit together 
_____________________
------------------ The ShelterThe Shelter is a non-profit recreation center for new residents, and supporters of new residents. Our goal is to provide a positive & supportive social environment for those looking for one in our overwhelming world.
|