Bubble Trapper - Bubble Animation

bubble_trapper_animation.lsl
///////////////////////////////////////////////////////////////////////////
//  Copyright (C) Wizardry and Steamworks 2011 - License: GNU GPLv3      //
//  Please see: http://www.gnu.org/licenses/gpl.html for legal details,  //
//  rights of fair usage, the disclaimer and warranty conditions.        //
///////////////////////////////////////////////////////////////////////////
 
// Picked from:
// https://wiki.secondlife.com/wiki/LlSetTextureAnim
 
default
{
    state_entry() {
        llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, ALL_SIDES,1,1,0, llFrand(TWO_PI), llFrand(2*TWO_PI));
    }
 
    on_rez(integer param) {
        llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, ALL_SIDES,1,1,0, llFrand(TWO_PI), llFrand(2*TWO_PI));
    }
}