Made a hud last night that ought to run avatar animations.
It asks for the animation perm but then it doesn't run the animation.
Pretty sure the scripting is clean.
Is there some funky thing about animations and huds I should know?
These forums are CLOSED. Please visit the new forums HERE
Hud Animation |
|
|
Rune Quinnell
Registered User
Join date: 25 Aug 2007
Posts: 28
|
11-21-2007 12:29
Made a hud last night that ought to run avatar animations.
It asks for the animation perm but then it doesn't run the animation. Pretty sure the scripting is clean. Is there some funky thing about animations and huds I should know? |
|
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
|
11-21-2007 12:34
Nothing special about using a HUD to trigger animations, in fact you don't even need to request permissions as it is an attachment. Double check that you are actually firing off the animations, without seeing your code can't give much more advice.
_____________________
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/ |
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
11-21-2007 12:58
you don't even need to request permissions as it is an attachment. |
|
Rune Quinnell
Registered User
Join date: 25 Aug 2007
Posts: 28
|
11-21-2007 15:49
Here's the basic script I'm working with
integer move = 0; default { on_rez(integer x) { llResetScript(); } state_entry() { key id = llGetOwner(); llRequestPermissions(id, PERMISSION_TRIGGER_ANIMATION); } touch_start(integer num_detected) { move = 1; } run_time_permissions( integer perm ) { if ((perm & PERMISSION_TRIGGER_ANIMATION) && (move == 1)) { llStartAnimation("testanim" ;move=0; } } } The only way it works is if I put the request permission in the touch_start but then I get a request to trigger anims which I don't want. |
|
Rune Quinnell
Registered User
Join date: 25 Aug 2007
Posts: 28
|
11-21-2007 20:31
Ok I figured it out, if the object is linked and not the master prim it can serve as a secondary button but it doesn't consider itself directly attatched to anyone so it won't get the permissions automatically.
sound bout right? |