These forums are CLOSED. Please visit the new forums HERE
Strange scripted animation problem |
|
|
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
|
12-14-2006 20:19
I have a fairly simple setup with two prims with animations in them, the script in the master prim sends a linked message to the slave prim when the animation is changed to fire off the same animation for the avatar on the slave prim as on the master. This all works fine, both avatars are playing the same animation in sync. The problem occurs when the avatar on the slave prim stands up, that avatar continues to be controlled by the script in the slave prim and continues to be animated in sync with the avatar on the master prim. The really weird thing is that this linkage has survived relogs and even from one day to the next. Any help with this owuld be greatly appreciated.
_____________________
Ravanne's Dance Poles and Animations
Available at my Superstore and Showroom on Insula de Somni http://slurl.com/secondlife/Insula de Somni/94/194/27/ |
|
Kitty Barnett
Registered User
Join date: 10 May 2006
Posts: 5,586
|
12-14-2006 20:34
When standing up, requested animate permissions don't get revoked (and despite what the wiki says, calling llRequestPermissions with the value of 0 doesn't release them either) until you request permissions for another avie (or you reset the script).
You need to either check llAvatarOnSitTarget for a non NULL_KEY (best and easiest way), or set/clear a flag in the changed event that indicates whether someone is sitting on either prim or not and check before playing an animation. |
|
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
|
12-14-2006 20:38
Found a workaround
If there is no one sitting on it I reset the slave script. Works but kind of like hitting things with a 2 by 4. _____________________
Ravanne's Dance Poles and Animations
Available at my Superstore and Showroom on Insula de Somni http://slurl.com/secondlife/Insula de Somni/94/194/27/ |
|
Kitty Barnett
Registered User
Join date: 10 May 2006
Posts: 5,586
|
12-14-2006 20:50
This should work fine
.CODE if ( (NULL_KEY != llAvatarOnSitTarget()) && |
|
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
|
12-14-2006 21:16
This should work fine .CODE if ( (NULL_KEY != llAvatarOnSitTarget()) && You'd think so but my code looked very much like that and it did not work, I figure just an undocumented feature of SL. Thanks for your help. ![]() _____________________
Ravanne's Dance Poles and Animations
Available at my Superstore and Showroom on Insula de Somni http://slurl.com/secondlife/Insula de Somni/94/194/27/ |
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
12-15-2006 01:22
You need to clear the animation and key being used by the slave prim when they stand up.
I'll assume you hold the key of the slaved sitter in a variable called sitter and the name of the current animation in animation CODE
|