User:Clarknova Helvetic/Say This & That Widgets
Jump to navigation
Jump to search
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");
}
}