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

From Second Life Wiki
Jump to navigation Jump to search
m (blocks wrapped in <lsl> tags)
 
Line 2: Line 2:




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


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




    default
<lsl>
    {  
default
        state_entry()
{  
        {
    state_entry()
            llInstantMessage(llGetOwner(), "my rotation is " + (string)llGetRot());
    {
            llInstantMessage(llGetOwner(), "my rot euler is " + (string)llRot2Euler(llGetRot()));
llInstantMessage(llGetOwner(), "my rotation is " + (string)llGetRot());
            llRemoveInventory(llGetScriptName());
llInstantMessage(llGetOwner(), "my rot euler is " + (string)llRot2Euler(llGetRot()));
        }
    llRemoveInventory(llGetScriptName());
   
    }  
    }
}
 
</lsl>
== '''Say Link Number''' ==
== '''Say Link Number''' ==




    default  
<lsl>
default  
     {  
     {  
        state_entry()  
    state_entry()  
        {  
    {  
            // Link Order Number Constants:
// Link Order Number Constants:
            // LINK_ALL_OTHERS == -2
// LINK_ALL_OTHERS == -2
            // LINK_THIS == -4
// LINK_THIS == -4
            // LINK_SET == -1
// LINK_SET == -1
            // LINK_THIS == -3
// 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.
// 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());  
llOwnerSay((string)llGetLinkNumber());  
            llRemoveInventory(llGetScriptName());  
llRemoveInventory(llGetScriptName());  
        }  
    }  
    }
}
</lsl>


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


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

Latest revision as of 12:25, 8 January 2008

Say Own Pos

<lsl> default

   {
    state_entry()
    {

llInstantMessage(llGetOwner(), "my pos is " + (string)llGetPos()); llRemoveInventory(llGetScriptName());

    }    

} </lsl>

Say Own Rotation

<lsl> default {

    state_entry()
    {

llInstantMessage(llGetOwner(), "my rotation is " + (string)llGetRot()); llInstantMessage(llGetOwner(), "my rot euler is " + (string)llRot2Euler(llGetRot()));

    	llRemoveInventory(llGetScriptName());
    }    

} </lsl>

Say Link Number

<lsl> 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());

    }    

} </lsl>

Say Own Key

<lsl> default

   {
       state_entry()
       {

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

    }    

} </lsl>