Second Life

Scripty Stuff

Needed to figure out how to fix the hover or floating text that I use for some of my storage objects (specifically, something I call my “tansu” organizer. However, this didn’t really seem to solve my problem; the hover text is stubbornly too high above my prim. Ah well.

LSL Wiki : llSetText

The text will always be positioned to float straight up (parallel to the world’s Z-axis) from the prim’s center at a distance of half the prim’s Z scale plus some fixed offset.
The float text uses the prims Z axis regardless of it?s rotation. This means that if you rotate a prim 90 degrees and flatten it, the text will float just above the center.

Lelani Carver is a Steampunk resident in Second Life who blogs a little about everything, and about nothing of any importance. She sells odds and ends inspired by her real and virtual lives at her store in Steelhead St Helens or on the Second Life Marketplace.

2 Comments on “Scripty Stuff

  1. Lelani, the best thing to do for float-text is to have a special transparent prim, very small, for the text. This enables you to position the text precisely. If the special prim is not your root prim, you will need to put a separate script in it to set the text (perhaps getting the string from the main scripts with llLinkedMessage).

  2. Totally makes sense – but doubles the prim count, so I think I’ll learn to live with it. It’s the same method Eradanis’ texture organizer uses for her category buttons (which totally rocks and is free).

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.