Play Animation on Attach

From ZenMondo Wormser, 1 Year ago, written in Linden Scripting, viewed 350 times.
URL http://flynnos.org/flynnbin/view/7c93f573 Embed
Download Paste or View Raw
  1. {
  2.    
  3.    
  4.      attach(key attached)
  5.     {
  6.         if (attached != NULL_KEY)   // object has been //attached//
  7.         {
  8.             llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
  9.             llStartAnimation(llGetInventoryName(INVENTORY_ANIMATION, 0));
  10.          
  11.         }
  12.         else  // object has been detached
  13.         {
  14.             llStopAnimation(llGetInventoryName(INVENTORY_ANIMATION, 0));            
  15.         }
  16.     }
  17. }
  18.  

Reply to "Play Animation on Attach "

Here you can reply to the paste above

captcha