Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help needed with custom animation

MIT Bourne
Registered User
Join date: 12 Jan 2007
Posts: 20
01-01-2008 19:50
I'm not sure if this is the place to post it, but i couldn't find any other sites with the solution.

I need to include an animation that was bought, in an object. The problem is, it keeps giving me an error saying the animation cannot be found. The code is below.

default {
touch_start(integer num_detected) {
llRequestPermissions(llDetectedKey(0), PERMISSION_ATTACH);
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
}

run_time_permissions(integer perm) {
if (perm & PERMISSION_ATTACH) {
llAttachToAvatar(ATTACH_RULEG);
}
if (perm & PERMISSION_TRIGGER_ANIMATION) {
llStartAnimation("Badgers";);
}
}
}

Do i need to include some extra lines when using a custom animation? Or am i using the wrong animation name, since it worked when i used "rps_countdown" but couldn't find the animation when i used "rps_count" or "RPS count".

Any help is appreciated =)
Crystal Falcon
Registered Silly User
Join date: 9 Aug 2006
Posts: 631
01-02-2008 10:51
Have you put the animation in the contents of the object with the script? Is the animation exactly named "Badgers"? (Not "badgers" or "Badger" or something similar?) :)

(Hope this helps, if not, you might ask to have this moved to the scripting tips forum...) ;)
_____________________
TP to Crystal's Facets in world:
http://slurl.com/secondlife/Kress/120/5/146/

Shop my natural AO poses, clothing, tools with XStreet:
MIT Bourne
Registered User
Join date: 12 Jan 2007
Posts: 20
01-02-2008 19:11
The names are correct. But it didn't work unfortunately. Haha, at least there's no error message now =P The avatar just does nothing.

Thanks a plenty!
Bree Giffen
♥♣♦♠ Furrtune Hunter ♠♦♣♥
Join date: 22 Jun 2006
Posts: 2,715
01-03-2008 08:50
I just tried the script with one of my animations and it seem to be working. It attaches to my leg and animates me. Do you have full permissions on the animation?
Crystal Falcon
Registered Silly User
Join date: 9 Aug 2006
Posts: 631
01-03-2008 11:10
From: MIT Bourne
The names are correct. But it didn't work unfortunately. Haha, at least there's no error message now =P The avatar just does nothing.


I'm glad you got the error message to go away! :) So now that it's found the animation, it may actually be playing, but you might not be able to see it if another animation of higher priority is playing at the same time?
_____________________
TP to Crystal's Facets in world:
http://slurl.com/secondlife/Kress/120/5/146/

Shop my natural AO poses, clothing, tools with XStreet:
MIT Bourne
Registered User
Join date: 12 Jan 2007
Posts: 20
Permission for Animation
01-08-2008 22:05
Is there anyway that i can do the animation without asking for permission?
MIT Bourne
Registered User
Join date: 12 Jan 2007
Posts: 20
Animation
02-03-2008 17:29
Is there a way to do that animation assign to that object even though i dont own it?
Bree Giffen
♥♣♦♠ Furrtune Hunter ♠♦♣♥
Join date: 22 Jun 2006
Posts: 2,715
02-04-2008 20:57
Here you go:

http://wiki.secondlife.com/wiki/LlStartAnimation

As you can see from the page you need to have your animation inside the prim in order for the script to play it. The only animations that can be played without actually having them are the SL default animations.