This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
integer gHasPerms = FALSE; | |
function printCameraInfo() { | |
float aspect = llGetCameraAspect(); | |
float fov = llGetCameraFOV(); | |
llOwnerSay("aspect = " + (string)aspect + " FOV = " + (string)fov); | |
} | |
default { | |
on_rez(integer a) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string NOTECARD_NAME = "notecard"; | |
key gLineCountId; | |
default { | |
state_entry() { | |
// Request number of notecard lines. | |
gLineCountId = llGetNumberOfNotecardLines(NOTECARD_NAME); | |
} | |
dataserver(key id, string data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default { | |
touch_start(integer count) { | |
string message = "your-test-message-here"; | |
list algorithms = ["md5", "md5_sha1", "sha1", "sha224", "sha256", "sha384", "sha512"]; | |
integer algorithmCount = llGetListLength(algorithms); | |
llOwnerSay("message='" + message + "'"); | |
integer i = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default { | |
state_entry() { | |
llSensorRepeat("", NULL_KEY, AGENT, 95, TWO_PI, 10); | |
} | |
sensor(integer count) { | |
integer i; | |
for (; i < count; ++i) | |
{ | |
if (llIsFriend(llDetectedKey(i))) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default { | |
touch_start(integer count) { | |
key id = llRezObjectWithParams("Rocket", [ | |
REZ_FLAGS, REZ_FLAG_TEMP|REZ_FLAG_DIE_ON_COLLIDE|REZ_FLAG_BLOCK_GRAB_OBJECT|REZ_FLAG_DIE_ON_NOENTRY, | |
REZ_POS, <0.0, 0.0, 1.0>, TRUE, FALSE, | |
REZ_VEL, <10.0, 0.0, 0.0>, TRUE, FALSE, | |
REZ_SOUND_COLLIDE, "69d12eb6-3647-418a-b476-f7b883e0be15", 1.0 | |
]); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default { | |
touch_start(integer num) { | |
llSay(0, "Use the following keys to " + "secondlife:///app/keybinding/push_forward"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default { | |
state_entry() { | |
llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_CLICK_ACTION, CLICK_ACTION_NONE]); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default { | |
state_entry() { | |
// Add some LSD values starting with "foo" and some that don't | |
llLinksetDataWrite("foobar", "a"); | |
llLinksetDataWrite("foobaz", "a"); | |
llLinksetDataWrite("foobaa", "a"); | |
llLinksetDataWrite("woofie", "100"); | |
llLinksetDataWrite("fungus", "500"); | |
integer fooCount = llLinksetDataCountFound("^foo"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default { | |
state_entry() { | |
list params = llGetPrimitiveParams([PRIM_TYPE]); | |
integer primType = llList2Integer(params, 0); | |
// Figure out if prim is mesh or animesh | |
if (primType == PRIM_TYPE_SCULPT) { | |
integer sculptType = llList2Integer(params, 2); | |
if (sculptType & PRIM_SCULPT_FLAG_ANIMESH) { | |
llOwnerSay("I'm animesh!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default { | |
state_entry() { | |
// Detect agents within a 96m radius | |
llSensorRepeat("", NULL_KEY, AGENT, 96.0, TWO_PI, 5.0); | |
} | |
sensor(integer count) { | |
// Check if detected agent(s) are bots | |
integer i; | |
for (; i < count; i++) { |
NewerOlder