3

I would like to know whether there is any mechanism to retrieve the display text of an object. As far as I know, there's no direct LSL function for that.

Isn't there any property that we can use to extract this information?

Ry-
  • 218,210
  • 55
  • 464
  • 476
sura
  • 1,471
  • 4
  • 17
  • 25

1 Answers1

5

Assuming you mean the text that hovers over an object:

That text is set by calling llSetText, but there is no corresponding llGetText. Instead, you can use llGetPrimitiveParams with the constant PRIM_TEXT, like so:

list params = llGetPrimitiveParams([PRIM_TEXT]);
string text = llList2String(params, 0);
MtnViewMark
  • 5,120
  • 2
  • 20
  • 29