Reset Everything (Deletes Itself)

Written by Kitsune

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_KEY, TRUE);
        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());
    }
}