Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Animating TWO avatars...

Dala Palmer
Registered User
Join date: 15 Jan 2007
Posts: 2
06-03-2007 06:09
How can an object animate two different avatars at once?
For example, if u make a kiss-script which makes two people kiss, how would you explain to the script which avatar you want to animate.

The function llStartAnimation only takes one parameter (the name of the animation), but how do you tell it which avatar you want to animate??
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
06-03-2007 06:13
You need two scripts, one for each avatar. llStartAnimation will target the last avi that you got permissions for. Each script requests the permissions for 1 avi and will animate that avi. The scripts can communicate thru llMessageLinked.

Lyn
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
06-03-2007 11:48
Take a look at the hugger script posted elsewhere in this forum. Should give you most of waht you need.
_____________________
I'm back......
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
06-03-2007 15:30
It could in theory still be done with a single script, once you get permission from the hug-target to animate, the script can pull the owner over to them, start animating the target then quickly request permission to animate the owner (who automatically grants it).
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
06-04-2007 01:32
Possibly... but the chance of out-of-sync anims due to lag would be higher I think. And if LL ever changes the behaviour of permissions for something you wear or sit on... I'd stick with 2 scripts.
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-04-2007 01:54
I don't think it's a permissions problem, exactly. llStopAnimation() doesn't take an avatar argument. I think a script forgets any previously animated avatars if it starts animating a different one.
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
06-04-2007 04:31
Unless you need a couples animation that lasts longer than 30 seconds (and thus requires a looping animation) then that's not really an issue, as you can just use an animation that plays once and then stops by itself.
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)