Sarah Marlowe
Registered User
Join date: 20 Apr 2005
Posts: 12
|
05-17-2005 15:46
Hi!
I've made a multi-person, multi-poseball object. On thier own (i.e. unlinked) the poseballs display the correct menu option (i.e replacement for sit) when right clicked. When I link the object and poseballs together, the poseballs don't display the correct label when right clicked. Sometimes they will display 'sit', whilst other times they will display the label of the poseball last worked on. Anyone know how to fix this?
thanks in advance,
-SM
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
05-17-2005 16:18
My advice would be to call llSetSitText every time you change the sit target for the root prim (the one colored yellow). Since people can select objects individually and by their "root prim" (for the whole object), this should be what's causing your problem.
_____________________
---
|
Stinky Queso
Second Life Resident
Join date: 29 Nov 2004
Posts: 53
|
05-17-2005 17:16
llSetSitText isnt prim specific in a linked set. Wherever they right click the object it will still say the sittext called from the parent prim, so do what Jeffrey says and call it each time the sit text changes.
|
Sarah Marlowe
Registered User
Join date: 20 Apr 2005
Posts: 12
|
not sure what u mean
05-17-2005 17:25
mmm - not sure what u mean there - I don't change the sit target for the root prim- linking the poseballs with the whole object is done to stop the sit target/s changing...
am I missing something here?
-SM
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
05-17-2005 17:56
The bottom line is the "Sit Text" from the root prim is all that matters in a linked set. You'll need to change that.
_____________________
---
|
Sarah Marlowe
Registered User
Join date: 20 Apr 2005
Posts: 12
|
...
05-18-2005 05:59
Ah I see! sorry, moment of dumbness... but that would mean I can only set one label for all of the poseballs - what if I wanted a different label for each ball? Is that possible?
thanks,
- SM
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
05-18-2005 06:11
Well, one sneaky way to do it would be to not link them - just have them run a sensor check when someone "attaches."So let's say you have three poseballs, all with different positions: // <pseudocode> Poseball 1: Position - <0,0,0> Sit Target - <1,1,1>
Poseball 2: Position - <5,5,5> Sit Target - <1,1,1>
Poseball 3: Position - <10,10,10> Sit Target - <1,1,1> You could run a couple sensors to figure out where in range the poseballs are, then check for avatars where their sit targets should be. If you want to be absolutely thorough, you could also check the avatar's animation list via llGetAnimationList.So your sensor would, in theory, search for this: Poseball 1: Avatar at <1,1,1> Poseball 2: Avatar at <6,6,6> (Fitting) Poseball 3: Avatar at <11,11,11> // </pseudocode> And if you plan to have them be rotated at a certain angle, simply multiply the sit target by llGetRot and add the position of the poseball. Clear as mud? 
_____________________
---
|
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
|
linked set labels
05-18-2005 07:27
llSetSitText does not let you set a different one for each poseball in a linked set.
It will only display the sit text for the parent prim. =-(
|
Sarah Marlowe
Registered User
Join date: 20 Apr 2005
Posts: 12
|
05-19-2005 05:54
thanks all, I'll give it a try with the unlinked version...
- SM
|