Skip to content

Guides

Guides are longer articles and tutorials that explain a topic and build up working code. For short how-tos that do one task, see Recipes; for the language itself, see Fundamentals.

  • Learn LSL: a path into Second Life scripting, from the first script to useful interactions.
  • Working with link numbers: find prims by name in your own linkset or another object, and keep a pool of reusable prims in linkset data.
  • Texture coordinates: turn pixel positions in a texture atlas or spritesheet into PRIM_TEXTURE repeats and offsets.
  • Constraining rotations: keep only the yaw of a rotation or remove its roll; Turret rotation applies them in a complete turret script.
  • Coordinate frames: region, local, attachment and HUD frames, touch and texture coordinates, and a tank turret that stacks them.
  • Interpolation and easing: rescale between ranges, interpolate floats, vectors and rotations, and step values towards a target.