Difference between revisions of "User:Toady Nakamura/Scrubber Script"

From Second Life Wiki
Jump to navigation Jump to search
m (I will get the hang of this someday, i promise)
m (header example)
Line 41: Line 41:
}
}
</lsl>
</lsl>
==To scrub child prims too==

Revision as of 16:09, 20 April 2013

The Scrubber Originally by Jopsy Pendragon

  • Toadified May 1, 2011 --Toady Nakamura
  • Resets prim to default states and self-deletes.
  • Will not remove your original script.

<lsl> default {

   state_entry()
   {
       llSetSitText("");
       llSetTouchText("");
       llSetText("",<0,0,0>,1.0);
       llParticleSystem([]);
       llStopSound();
       llSetTextureAnim(FALSE,ALL_SIDES,1,1,0,0,0.0);
       llTargetOmega(ZERO_VECTOR,0,0);
       llSitTarget(ZERO_VECTOR,ZERO_ROTATION);

       llSetCameraAtOffset(ZERO_VECTOR);
       llSetCameraEyeOffset(ZERO_VECTOR);

       llSetPayPrice(PAY_DEFAULT,[PAY_DEFAULT,PAY_DEFAULT,PAY_DEFAULT,PAY_DEFAULT]);
       llStopMoveToTarget();
       llStopLookAt();
       llVolumeDetect(FALSE);
       llCollisionFilter("", NULL_KEY, TRUE);
       llForceMouselook(FALSE);
       llPassCollisions(TRUE);
       llPassTouches(TRUE);
       llRemoveVehicleFlags(-1);
       llSetVehicleType(VEHICLE_TYPE_NONE);
       llSetRemoteScriptAccessPin(0);
       llSetBuoyancy(0.0);
       llSetForceAndTorque(ZERO_VECTOR,ZERO_VECTOR,FALSE) ;

       llOwnerSay("Prim Scrubbed Clean... ");
       llRemoveInventory( llGetScriptName() );
       // vanish without a trace...
   }

} </lsl>

To scrub child prims too