Monthly Archives: March 2008

12 posts

Simple Intra-Simulator Teleporting Tool

Also an exercise for my LSL scripting classes, this one is a simple llSetPos teleporting script. The final location is written as <X,Y,Z> on the object’s description. vector destination; key avatar; default { state_entry() { destination = (vector)llGetObjectDesc(); if (destination == ZERO_VECTOR) destination = llGetPos(); llWhisper(0, “Configured; destination is ” […]

Simple slideshow projector

Another one from my series of LSL training courses. Touches to switch to the next texture; resets if textures are added or removed to the inventory. integer numberTextures = 0; integer currentTexture = 0; default { state_entry() { numberTextures = llGetInventoryNumber(INVENTORY_TEXTURE); } touch_start(integer who) { llSetTexture(llGetInventoryName(INVENTORY_TEXTURE, currentTexture), ALL_SIDES); if (currentTexture […]