Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
10-19-2009 16:02
hey all,
i know this is on here somewhere but can't seem to find it. i have a large build (200+prims) with seating seperate from each other but linked to the main structure.
when i put the sit scripts in the seats then link them (seats aren't root) i can only sit on one seat not any of the three.
Help
_____________________
DANCE WITH KIRBY (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^) (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^)
|
Celty Westwick
Registered User
Join date: 24 Jun 2006
Posts: 145
|
10-19-2009 16:16
Helps to know how you scripting the sits.
|
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
10-19-2009 16:39
This is the script i'm using, it's in a ball under each seat. //***************************************** //* Nyterave animation ball script! * //* FREE TO USE V2.1 * //* by Sitting Lightcloud * //******************************************/
// * * * * * * * MODIFY BELOW * * * * * * *//
// position to sit on the ball e.g \ 0.0, 0.0, 0.43 \ // sit 0.5 meter above the ball vector POSITION=\0.55, -0.02, -0.10\; //all > & replaced with\
// hovertext above ball. "" for none. // add '\n ' at the end to move text up i.e. // string HOVERTEXT="Sit Here\n "; string HOVERTEXT="Kick Back";
// Pie Menu Sit Text. Will only work for the // main prim but included it anyway. If no text // is entered between "" it won't be used. string SIT_TEXT="";
// hovertext color 'r,g,b' e.g. "255,255,255" (white) string HOVER_RGB="255,255,255";
// LISTEN sets if this ball should listen for voice commands // or not. You only need to enable this for 1 ball if you // link several balls to an object. (to reduce lagg). // Change to TRUE to enable FALSE to disable. integer LISTEN=TRUE;
// What channel to listen for hide/show on. If you want to // listen to normal conversation (hide/show), set channel // to 0 otherwise the command will be /channel hide, show integer CHANNEL=0;
// * * * * * * * STOP MODIFY * * * * * * * *//
set_text() { if (llStringLength(HOVERTEXT)>0) { rgb=llCSV2List(HOVER_RGB); llSetText(HOVERTEXT,< llList2Float(rgb,0)*0.003921568627450980392156862745098,llList2Float(rgb,1)*0.003921568627450980392156862745098,llList2Float(rgb,2)*0.003921568627450980392156862745098 >,1.0); } else llSetText("", \ 0,0,0 \,0.0); } start_listen() { llListenRemove(listener); if (LISTEN==TRUE) listener=llListen(CHANNEL,"","",""); } hide_me() { llSetAlpha(0.0, ALL_SIDES); llSetText("", \ 0,0,0 \,0.0); } show_me() { llSetAlpha(1.0, ALL_SIDES); set_text(); } list rgb; string animation; integer listener; default { state_entry() { if (llStringLength(SIT_TEXT)>0) llSetSitText(SIT_TEXT); llSitTarget(POSITION, ZERO_ROTATION); set_text(); start_listen(); } on_rez(integer r) { start_listen(); } listen(integer channel, string name, key id, string msg) { if (msg=="hide") { hide_me(); llMessageLinked(LINK_SET,0,"hide", NULL_KEY); } else if (msg=="show") { show_me(); llMessageLinked(LINK_SET,0,"show", NULL_KEY); } } changed(integer change) { if (change & CHANGED_LINK) { if (llAvatarOnSitTarget() != NULL_KEY) { llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION); } else { integer perm=llGetPermissions(); if ((perm & PERMISSION_TRIGGER_ANIMATION) && llStringLength(animation)> 0) llStopAnimation(animation); llSetAlpha(1.0, ALL_SIDES); set_text(); animation=""; } } } run_time_permissions(integer perm) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llStopAnimation("sit"); animation=llGetInventoryName(INVENTORY_ANIMATION,0); llStartAnimation(animation); llSetAlpha(0.0, ALL_SIDES); llSetText("",\ 0,0,0 \,0.0); } }
link_message(integer sender_num, integer num, string str, key id) { if (str=="hide") { hide_me(); } else if (str=="show") { show_me(); } } }
_____________________
DANCE WITH KIRBY (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^) (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^)
|
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
deploy to a specific point
10-19-2009 17:20
this is a side not part of the same build.
how do i "deploy" an object to a specific position in a region (128, 128, 3500 ) with one command/click/ whatever.
i know it would be similar to the high alt rez script but it only needs to be one way. (UP)
_____________________
DANCE WITH KIRBY (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^) (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^)
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
10-19-2009 17:43
If you have left the script in a pose ball, as your second note says, then there's no problem unless you linked the balls to the build. That's the smart way to do it, because you can adjust the avatar sitting position of each ball without having to monkey with the scripts. On the other hand, if you linked the pose balls or if you put the sit script in each of the seats and linked them, you'll only get one to work at a time. An avatar sitting on an object becomes a member of its link set, and you can't have two avatars linked to the same object. The way to beat the problem (other than not linking the seats) is to use a multi-seat script like MLPV2. As for your second, unrealted question (which really should have been in a thread by itself  ), the answer is Warppos http://lslwiki.net/lslwiki/wakka.php?wakka=LibrarySenWarp
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
10-19-2009 18:34
side note again.
in that script (the pose one) is there anything about the camera position as my camera "shifts" about 2m - 3m to the left on sitting.
_____________________
DANCE WITH KIRBY (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^) (^'-')^ (^'-')> (>'-')> <  '-'^) ^('-'^)
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
10-19-2009 19:40
Depending on whether you have moved your camera before you sit, your point of view may end up behind you or somewhere else. Hit ESC to clear and reset the camera and then use your direction arrows to move it around where you want it.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
Celty Westwick
Registered User
Join date: 24 Jun 2006
Posts: 145
|
10-19-2009 21:11
Hmm i recently needed due to the nature of the build link in a number of poseballs to a 150 prim object, and it worked, so i don't quite understand, Roliq, what you meant by only one would work, as long as avatars sit on the poseballs prims and not some other area of the linkset it does function. I agree in general about mlp or another multi-sit, but that not always possible to use in some builds.
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
10-19-2009 21:24
if you're selecting a prim that has a sit target, it should put you in that place, otherwise, i think it goes in the order of the link numbers to decide which sit target to use. not sure if it works the same with/without the pose script. and prims that don't have a sit target set, or removed with ZERO_VECTOR i think are ignored
|