|
Rhaven Slade
Registered User
Join date: 23 Jun 2007
Posts: 2
|
07-07-2007 15:34
I've been playing around with llStartAnimation awhile now, and have run into a slight annoyance. You see, llStartAnimation doesn't take a key input, so you can't target specific avatars directly. Currently i'm running it in the permissions event, but that means that I have to ask for permissions every time the animation changes. My question is this; Is there any easy way of selecting the Avatar to animate with llStartAnimation?
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
07-07-2007 19:40
Perhaps to complete the puzzle it would help to know that at any one time, an individual script can animate only one avatar, and that will be the one for which the script currently has PERMISSION_TRIGGER_ANIMATION. So, if the script is to switch among avatars to animate, it will need to request that permission again, of the new avatar.
(Trying to anticipate another question: A single script can coordinate the simultaneous animation of multiple avatars, as in dance machines, but the actual animating of the individual avatars is handled by slave scripts managed by that "coordinating" script.)
|
|
Rhaven Slade
Registered User
Join date: 23 Jun 2007
Posts: 2
|
07-08-2007 00:02
I currently use one script for many avatars, but it requires permission popups every change... So a script can only hold the permissions of one avatar? Interesting, and I don't remember reading anything about it the wiki. Also explains my problem. I guess I know what I have to do to work around it... but dang is that a monotonous way of doing it.
|
|
Boss Spectre
Registered User
Join date: 5 Sep 2005
Posts: 229
|
07-08-2007 00:47
From: Rhaven Slade I currently use one script for many avatars, but it requires permission popups every change... So a script can only hold the permissions of one avatar? Interesting, and I don't remember reading anything about it the wiki. Also explains my problem. I guess I know what I have to do to work around it... but dang is that a monotonous way of doing it. It's described on the page for the llRequestPermissions() call: "Further, multiple agents may not grant permissions to the same script at the same time. For an object to have permissions for multiple agents simultaneously, one script is needed for each agent. They may still be within the same prim, however." http://lslwiki.net/lslwiki/wakka.php?wakka=llRequestPermissions
|