Difference between revisions of "User:Clarknova Helvetic/Say This & That Widgets"

From Second Life Wiki
Jump to navigation Jump to search
m (page madezorz)
 
Line 1: Line 1:
'''Say Own Pos'''
== '''Say Own Pos''' ==
 


     default
     default
Line 11: Line 12:
     }
     }


'''Say Own Rotation'''
== '''Say Own Rotation''' ==
 


     default
     default
Line 24: Line 26:
     }
     }


'''Say Link Number'''
== '''Say Link Number''' ==
 


     default  
     default  
Line 42: Line 45:
     }
     }


'''Say Own Key '''
== '''Say Own Key ''' ==
 


     default
     default

Revision as of 16:27, 6 January 2008

Say Own Pos

   default
   {
       state_entry()
       {
           llInstantMessage(llGetOwner(), "my pos is " + (string)llGetPos());
           llRemoveInventory(llGetScriptName());
       }
   
   }

Say Own Rotation

   default
   { 
       state_entry()
       {
           llInstantMessage(llGetOwner(), "my rotation is " + (string)llGetRot());
           llInstantMessage(llGetOwner(), "my rot euler is " + (string)llRot2Euler(llGetRot()));
           llRemoveInventory(llGetScriptName());
       }
   
   }

Say Link Number

   default 
   { 
       state_entry() 
       { 
           // Link Order Number Constants:
           // LINK_ALL_OTHERS == -2
           // LINK_THIS == -4
           // LINK_SET == -1
           // LINK_THIS == -3
           // Unlike many other LsL numbering schemes, link numbers start at 1, not 0.  The link number is only 0 if there are no other links present, i.e. the object's a single prim.
           
           llOwnerSay((string)llGetLinkNumber()); 
           llRemoveInventory(llGetScriptName()); 
       } 
   }

Say Own Key

   default
   {
       state_entry()
       {
           llSay(0, "my key is " + (string)llGetKey());
           llRemoveInventory("Say Own Key");
       }
   
   }