Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This script changes texture on a timer. Change the float of llSetTimerEvent to increase or decrease the time between texture changes.
- ChangeTexture ()
- {
- llSetPrimitiveParams ([ PRIM_TEXTURE, ALL_SIDES,llGetInventoryName (INVENTORY_TEXTURE, (integer) llFrand (llGetInventoryNumber (INVENTORY_TEXTURE))), <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0 ]);
- }
- default
- {
- state_entry ()
- {
- llAllowInventoryDrop (TRUE);
- llSetTimerEvent (20.0);
- ChangeTexture ();
- }
- timer ()
- {
- ChangeTexture ();
- }
- touch_start (integer touches)
- {
- ChangeTexture ();
- }
- changed (integer Change)
- {
- if (Change & (CHANGED_ALLOWED_DROP | CHANGED_INVENTORY))
- ChangeTexture ();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement