|
Michael Bigwig
~VRML Aficionado~
Join date: 5 Dec 2005
Posts: 2,181
|
12-10-2007 10:41
Hello,
I know I know...search. I did. I couldn't find the answer, so I'm here...
I have a sign...the sign has a floating text script--the floating script has a few flaws it seems. 1) the text is dead center, no matter what numbers I change in the script the position of the text doesn't change, and 2) even when I get rid of the script, and reset the objects scripts (or recompile)...the floating text doesn't go away. It never goes away, or changes. The only thing I can change is what the text says...and that works.
Any idea? Bad script? Bug? What gives?
Thanks in advance.
_____________________
~Michael Bigwig __________________________________________________Lead Designer, Glowbox Designs 
|
|
Okiphia Rayna
DemonEye Benefactor
Join date: 22 Sep 2007
Posts: 2,103
|
12-10-2007 10:54
From: Michael Bigwig Hello,
I know I know...search. I did. I couldn't find the answer, so I'm here...
I have a sign...the sign has a floating text script--the floating script has a few flaws it seems. 1) the text is dead center, no matter what numbers I change in the script the position of the text doesn't change, and 2) even when I get rid of the script, and reset the objects scripts (or recompile)...the floating text doesn't go away. It never goes away, or changes. The only thing I can change is what the text says...and that works.
Any idea? Bad script? Bug? What gives?
Thanks in advance. with llSetText? That will always be centered above the prim it's in, I don't know any way to change that. The vector is just colour To remove the text, set the text message to just a space instead of a message, save it, that should get rid of it. Hovertext remains for some reason I haven't traken the time to learn. EDIT:: the script Nika posted works wonderfully However, for future reference, the line of script that will remove it would be llSetText(" ",ZERO_VECTOR,1.0); EDIT AGAIN:: The script Nika posted will remove a lot of things, not just the hovertext. If it does something you want it to keep doing, but don't want hte hovertext it may be safer to use just the one line
_____________________
Owner of DemonEye Designs Custom Building and Landscaping Owner and Blogger, Okiphia's Life http://okiphiablog.blogspot.com/ 
|
|
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
|
12-10-2007 10:54
Hover text is a property of the prim, so getting rid of the script isn't enough, you need to actually reset the property. Here's a script that scrubs all such properties back to reasonable defaults (e.g. turns off particle systems, etc.). The line with "llSetText" is the one to get rid of the text. The script deletes itself when done, just dump it in the prim. default { state_entry() { llSetSitText( "" ); llSetTouchText( "" ); llParticleSystem( [ ] ); llSetText( "", ZERO_VECTOR, 1.0 ); llTargetOmega( ZERO_VECTOR, 0, 0 ); llSetCameraAtOffset( ZERO_VECTOR ); llSetCameraEyeOffset( ZERO_VECTOR ); llSitTarget( ZERO_VECTOR, ZERO_ROTATION ); llSetTextureAnim( FALSE , ALL_SIDES, 1, 1, 0, 0, 0.0 ); llStopSound(); llOwnerSay("This Prim is Clean... "  ; llRemoveInventory( llGetScriptName() ); // vanish without a trace... } }
|
|
Michael Bigwig
~VRML Aficionado~
Join date: 5 Dec 2005
Posts: 2,181
|
12-10-2007 12:11
You guys rock my socks off. Thanks.
_____________________
~Michael Bigwig __________________________________________________Lead Designer, Glowbox Designs 
|
|
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
|
12-10-2007 12:18
if you wanted a complete scrubbing, you need to add llSetRemoteScriptAccessPin(0); 
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-10-2007 13:02
theres a few prim properties missing from the above scrubber example (like rotation locking) I believe the freely available scrubber available from 'The particle Laboratory" (in world search) has them all
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|