Start Animation On Attach

Thread Started By ☠ MosDef ☠

2160
0
  • 44 Vote(s) - 2.64 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rate Thread
#1
Code:
/*
Bornslippy Ruby presents...
Start Animation On Attach
Tags: animations, attachments, owner, permissions, featured, tools
Description:
License:

http://secondlife.coolminds.org
*/

string HOLD_ANIM = "animation name";

// --------------------------------------------------------

default
{
    on_rez(integer rezzed)
    {
        llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
    }
    
    attach(key attached)
    {
        if(attached != llGetOwner())
            if(llGetPermissions() & PERMISSION_TRIGGER_ANIMATION)
                llStopAnimation(HOLD_ANIM);
    }
    
    run_time_permissions(integer perms)
    {
        if(perms & PERMISSION_TRIGGER_ANIMATION)
            llStartAnimation(HOLD_ANIM);
        else
            llDetachFromAvatar();
    }
}
[Image: 8cWHDmW.png]
Reply




Possibly Related Threads…
Thread Author Replies Views Last Post
  Drink Animation Script YoungMoney 2 4,327 06-19-2019, 04:36 AM
Last Post: snehagenna
  Drink Animation 2 YoungMoney 0 2,701 03-04-2013, 02:00 AM
Last Post: YoungMoney

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...