Drink Animation 2

Thread Started By YoungMoney

2684
0
  • 46 Vote(s) - 2.74 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rate Thread
#1
// Requests permission to activate drink animation

// Author: unknown
integer flag = 0;


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

}

run_time_permissions(integer parm)
{
if(parm == PERMISSION_TRIGGER_ANIMATION)
{
//llWhisper(0,"Coco make you feel better :)");

llSetTimerEvent(15);

llStartAnimation("hold_R_handgun");
}

}

on_rez(integer st)
{
llResetScript();
}

attach(key id)
{
llStopAnimation("hold_R_handgun");
}




timer()
{

if(flag == 1)
{
llStartAnimation("drink");
}

if(flag == 3)
{
llStartAnimation("drink");
}

flag = flag + 1;

if(flag == 4)
{
flag = 0;
}

}




listen(integer channel, string name, key id, string message)
{
}


}
Reply




Possibly Related Threads…
Thread Author Replies Views Last Post
  Drink Animation Script YoungMoney 2 4,297 06-19-2019, 04:36 AM
Last Post: snehagenna
  Start Animation On Attach ☠ MosDef ☠ 0 2,153 02-20-2013, 09:01 PM
Last Post: ☠ MosDef ☠

Forum Jump:

1 Guest(s)
Share this:

About Second Life Copybot

Second Life CopyBot Forum is a place where you can get items for Second Life and other vitual worlds for free. With our CopyBot viewers you can export and import any content from these virtual worlds and modify them in 3D software such as Blender, 3D studio Macx etc...