Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Animating more then one avies (dance ball)

Un4given Spoonhammer
Registered User
Join date: 9 Mar 2006
Posts: 2
08-19-2006 00:36
Hi, I was wondering how to animate more then one agent with one object..
Like a dance ball.. I almost got it working.. but I have to request permissions again to stop the animation and I can't change the animation of all the agents with a timer or anything..

in short:
How do I store the permissions of mutliple agents?

I wasn't able to find anything about it in the wiki or on this forum.

Thanks in advance,
-Un4given
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
08-19-2006 08:54
You should be able to run multiple scripts, one script controlling each av.
Un4given Spoonhammer
Registered User
Join date: 9 Mar 2006
Posts: 2
08-21-2006 01:24
Yes.. but I'm just that's not how a dance ball works.. thx anyway :-)
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
08-21-2006 03:44
I have become a little bit suspicious of the descriptions in the WIKI (or my interpretation of them) but if I remember correctly ONE script can only hold permissions for ONE agent. Period.

You cannot store, apparently, the permissions and thus control multiple agents from one single script.

So - to control more than one avatar you'd need as many scripts as you have avatars. I am not sure about this but I bet you can have a script copy itself - or at least the part that controls the avis.
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
08-21-2006 08:17
Hi Un4given,

Basically there are a couple of things to know here.

1) A script can only take perms for one avatar at a time.
2) A prim can only have one sit target.

So the trick is to have two prims (with a sit target set on each and linked together), each with a script in them to trigger the appropriate animation for each partner when they sit.

Then the trick is to start the animations only when both balls have an av sitting on them which you can do with llMessageLinked communications between the two prims.

That's basically how they work.

Regards,
/esc
_____________________
http://slurl.com/secondlife/Together