Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help! Attach and play an animation??

Hana Timtam
::Piratess Princess::
Join date: 11 Apr 2006
Posts: 225
06-22-2007 01:10
i made an umbrella.
i made an animation of an "umbrella hold"

i put the animation inside my umbrella. But the animation won't play.
i assume i need a script too.
What kind of script do i need to make the umbrella "play" my umbrella-hold-animation when i "wear" it??
Aleister Montgomery
Minding the gap
Join date: 30 Apr 2006
Posts: 846
06-22-2007 01:15
string anim = "name of your animation in quotes" ;

default
{
state_entry()
{
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
}
on_rez(integer doesntmatter)
{
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
}
run_time_permissions(integer perm)
{
if(perm)
{
llStartAnimation(anim);
}
}
}
Aleister Montgomery
Minding the gap
Join date: 30 Apr 2006
Posts: 846
06-22-2007 01:16
Create a new script inside your umbrella, paste the contents of the post above into the script (after deleting the standard script text), change the first line (put in your animation name) and save it. That's all :)