User:Clarknova Helvetic/Say This & That Widgets

From Second Life Wiki
Jump to navigation Jump to search

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>