Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Greeting Cards

sweetmystry Jeffries
Registered User
Join date: 21 Oct 2006
Posts: 1
10-22-2007 04:12
Hi ive made some greeting cards i have an animation to put in but unfortunatley cant find a script to make the annimation work any ideas? the annimation is basically just a holding one that makes the advatars hands move. ty x
Bree Giffen
♥♣♦♠ Furrtune Hunter ♠♦♣♥
Join date: 22 Jun 2006
Posts: 2,715
10-24-2007 10:13
Here is my simple script for making a person animate. The animation is named 'flashlight' and it plays when the object is attached to you.

From: someone

default
{

state_entry()
{
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
}

attach(key attached)
{
if (attached != NULL_KEY) // object has been //attached//
{
llStartAnimation("flashlight";);
}
else // object has been detached
{
llStopAnimation("flashlight";);
}
}

}



Here's another one I found in my inventory. I'm not sure which works better.


From: someone

default
{
on_rez(integer param)
{
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
}

attach(key id)
{
llStartAnimation("baghold";);
}
}
_____________________