Sunday, June 7, 2015

When a rezzer system doesn't remove the hover text

I'm currently working in a full makeover of our SL home, and one of the things I've added is a house that came in a rezzer box. It's one of these systems that puts hover text on all the parts involved, and when you're done, in theory, the hover text is removed. But at times, for any reason (delays in communication, a network hiccups... you name it), the hover text isn't removed from all the objects.

Oh noez. Do I have to remove all objects and start again?

If the objects are modify, you don't have to remove all and start again :-)

Hover text is a primitive property that can be removed by using a self-deleting script. Since objects may consists of more than one linked prim, it's advisable that you use a script that removes the hover text from all prims on a linkset. For example, this one:

// Delete Hover Text (complete linkset)

default
{
    state_entry()
    {
        llSetLinkPrimitiveParamsFast(LINK_SET, [PRIM_TEXT, "", <1.0, 1.0, 1.0>, 1.0]);

        // All done, let's clean-up ourselves for not forgetting the script inside
        llRemoveInventory(llGetScriptName());
    }
}

If you don't feel sure about doing this, because oh my god no, scripts, don't worry: you can grab this set of little (but useful) scripts that I have for free on Marketplace, knowing that the script to use is Delete Hover Text (complete linkset). And if you want to learn more about primitive properties and little scripts that set/remove them, then click here for the full text of my "Low lag scripts for builders" class.

That's it. Short and sweet today. I'm working hard, you see! :o)


Have a great day :-)

No comments:

Post a Comment