Reset Everything (Deletes Itself)

Date 2010/5/12 5:23:38 | Topic: Primitive/Object

Resets float text, object rotate, texture animation, sit-target, & much more.


default
{
    
state_entry()
    {
        
llSetTextureAnim(FALSE,0,0,0,0.0,0.0,0.0);
        
llSetText("",ZERO_VECTOR,0.0);
        
llParticleSystem([]);
        
llSetPayPrice(PAY_DEFAULT,[PAY_DEFAULT,PAY_DEFAULT,PAY_DEFAULT,PAY_DEFAULT]);
        
llSitTarget(ZERO_VECTOR,ZERO_ROTATION);
        
llTargetOmega(ZERO_VECTOR,0.0,0.0);
        
llStopSound();
        
llStopMoveToTarget();
        
llStopLookAt();
        
llVolumeDetect(FALSE);
        
llCollisionFilter(""NULL_KEYTRUE);
        
llForceMouselook(FALSE);
        
llPassCollisions(TRUE);
        
llPassTouches(TRUE);
        
llRemoveVehicleFlags(-1);
        
llSetVehicleType(VEHICLE_TYPE_NONE);
        
llSetRemoteScriptAccessPin(0);
        
llSetSitText("");
        
llSetTouchText("");
        
llSetBuoyancy(0.0);
        
llSetForceAndTorque(ZERO_VECTOR,ZERO_VECTOR,FALSE) ;
        
llSetPrimitiveParams([PRIM_POINT_LIGHT,FALSE,< 1.0,1.0,1.0 >,0.0,10.0,0.75]);
        
llSay(0,"Object parameters have been reset. Deleting this script now.");
        
llRemoveInventory(llGetScriptName());
    }
}




This script comes from Alicia Stella Design - Best Tip Jars in Second Life
http://www.aliciastella.com

The URL for this script is:
http://www.aliciastella.com/modules/AMS/article.php?storyid=42