[Opensim-users] Floating text not going away
Garmin Kawaguichi
garmin.kawaguichi at magalaxie.com
Thu Mar 17 11:45:28 UTC 2011
// Prim Turn Off Properties
default
{
state_entry()
{
// Turn off any previously set sit target on prim
llSitTarget(ZERO_VECTOR,ZERO_ROTATION);
// Stop any rotation
llTargetOmega(<0,0,0>,0,0);
// Turn off any particle effects in prim
llParticleSystem([]);
// Turn off any sounds in prim - see
http://wiki.secondlife.com/wiki/LlStopSound
llStopSound();
llSetText("", <1,1,1>, 1.0);
llSetSitText("");
}
touch_start (integer num_detected){llResetScript();}
on_rez(integer iPNumb){llRsetScript();}
}
:)))
GCI
----- Original Message -----
From: "Ai Austin" <ai.ai.austin at gmail.com>
To: <opensim-users at lists.berlios.de>
Sent: Thursday, March 17, 2011 12:19 PM
Subject: Re: [Opensim-users] Floating text not going away
> There are a number of persistent properties of objects which stay
> even when the scripts which originally set up the values or
> properties are removed. You can explicitly remove the properties
> with a script which sets things to some null or empty state
> typically. The properties include:
>
> Text Label
> Rotation
> Particle Effect
> Sound Emitted and Volume Level
> Sit Position
>
> Here is an LSL script I keep handy to pup in a prim I want to remove
> properties from. I just put this in the object and then remove it
> again, just to make sure I start with things in a default or empty
> state where I reuse complicated objects.
>
> // Prim Turn Off Properties
>
> default
> {
> state_entry()
> {
> // Turn off any previously set sit target on prim
> llSitTarget(ZERO_VECTOR,ZERO_ROTATION);
>
> // Stop any rotation
> llTargetOmega(<0,0,0>,0,0);
>
> // Turn off any particle effects in prim
> llParticleSystem([]);
>
> // Turn off any sounds in prim - see
> http://wiki.secondlife.com/wiki/LlStopSound
> llStopSound();
>
> llSetText("", <1,1,1>, 1.0);
> llSetSitText("");
> }
>
> touch_start (integer num_detected) {
> // Turn off any previously set sit target on prim
> llSitTarget(ZERO_VECTOR,ZERO_ROTATION);
>
> // Stop any rotation
> llTargetOmega(<0,0,0>,0,0);
>
> // Turn off any particle effects in prim
> llParticleSystem([]);
>
> // Turn off any sounds in prim - see
> http://wiki.secondlife.com/wiki/LlStopSound
> llStopSound();
>
> llSetText("", <1,1,1>, 1.0);
> llSetSitText("");
>
> llSitTarget(ZERO_VECTOR,ZERO_ROTATION);
>
> }
>
> }
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
More information about the Opensim-users
mailing list