Difference between revisions of "Be happy"

From Second Life Wiki
Jump to navigation Jump to search
m (run_time_permissions)
Line 3: Line 3:
Put this script in an attachment to make your avatar smile.
Put this script in an attachment to make your avatar smile.


<lsl>//be happy
<lsl>//be happy
   
   
default
default
  {
{
     state_entry()
     state_entry()
     {
     {
        llRequestPermissions(llGetOwner(),PERMISSION_TRIGGER_ANIMATION);
        llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
        llSetTimerEvent(5.0);
     }
     }
 
    timer()
    run_time_permissions(integer p)
    {
        if(p & PERMISSION_TRIGGER_ANIMATION)
        {
            llSetTimerEvent(5.0);
        }
    }
 
    timer()
     {
     {
        llStartAnimation("express_toothsmile");
        llStartAnimation("express_toothsmile");
     }
     }
      
      
    attach(key moo)
    attach(key moo)
    {
    {
        if(moo != NULL_KEY)
        if(moo)
        {
        {
            llResetScript();
            llResetScript();
        }
        }
    }
    }
}</lsl>
}</lsl>

Revision as of 12:35, 21 September 2008

Be Happy

Put this script in an attachment to make your avatar smile.

<lsl>//be happy

default {

   state_entry()
   {
       llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
   }
   run_time_permissions(integer p)
   {
       if(p & PERMISSION_TRIGGER_ANIMATION)
       {
           llSetTimerEvent(5.0);
       }
   }
   timer()
   {
       llStartAnimation("express_toothsmile");
   }
   
   attach(key moo)
   {
       if(moo)
       {
           llResetScript();
       }
   }

}</lsl>