Difference between revisions of "User:Clarknova Helvetic/Say This & That Widgets"
m (blocks wrapped in <lsl> tags) |
|||
Line 2: | Line 2: | ||
<lsl> | |||
default | |||
{ | { | ||
state_entry() | |||
{ | |||
llInstantMessage(llGetOwner(), "my pos is " + (string)llGetPos()); | |||
llRemoveInventory(llGetScriptName()); | |||
} | |||
} | |||
</lsl> | |||
== '''Say Own Rotation''' == | == '''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''' == | == '''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 ''' == | == '''Say Own Key ''' == | ||
<lsl> | |||
default | |||
{ | { | ||
state_entry() | state_entry() | ||
{ | { | ||
llSay(0, "my key is " + (string)llGetKey()); | |||
llRemoveInventory("Say Own Key"); | |||
} | |||
} | |||
</lsl> |
Latest revision as of 11: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>