PRIM TEXT
Looking for the current API? Open the PRIM_TEXT reference →
Wiki description
Used to get or set the object's floating text.
Examples
default
{
state_entry()
{
// a string to display
string displayMessage = llGetDisplayName( llGetOwner() ) + ", test number ";
// just so could test changing the displayMessage
integer loopControl;
for( loopControl = 1; loopControl < 3; ++loopControl )
{
// on first iteration set the text
if( loopControl == 1 )
{
llSetPrimitiveParams([PRIM_TEXT, displayMessage + (string)loopControl + ".", <1, 0, 0>, 1.0]);
}
// on second iteration get the text and say it.
else if( loopControl == 2 )
{
llSay(0, llDumpList2String(llGetPrimitiveParams([PRIM_TEXT]), " "));
}
}
}
}See also: functions
Shared wiki helpers
The original page also injects shared parameter notes, caveats or issue information through these helpers. Their conditional MediaWiki logic is not reproduced here; inspect the preserved helper source for additional material.
Template:LSL PrimitiveParam Categorize
Original shared helper source (conditional wiki logic is not evaluated)
{{#if:{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}||{{#vardefine:hidden-text|{{#var:hidden-text}}
{{#ifexist:Template:LSLC{{#var:lang}}|
{{LSLC{{#var:lang}}|PrimitiveParams}}
{{LSLC{{#var:lang}}|PrimitiveParams/{{{1}}}}}
{{LSLC{{#var:lang}}|{{{1}}}}}
|
{{LSLC|PrimitiveParams{{#var:lang}}}}
{{LSLC|PrimitiveParams/{{{1}}}{{#var:lang}}}}
{{LSLC|{{{1}}}{{#var:lang}}}}
}}
}}}}Caveats
- Do not rely on Floating Text as a storage medium; it is neither secure nor finalized.
- Floating text has been altered in past server updates, breaking existing content; future changes may occur.
- Even "invisible"Floating text with an
alphaset to 0.0 is rendered "invisible" floating text is transmitted to the client.- It can be viewed by anyone with a client that is capable of rendering text that is supposed to be invisible.
- The network packets that contain the text can be sniffed and the text read.
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.