///////////////////////////////////////////////////////////////////////////
//  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.        //
///////////////////////////////////////////////////////////////////////////
 
default
{
    state_entry()
    {
        state normal; 
    }
}
 
state normal
{
    state_entry() {
        llSetLinkPrimitiveParamsFast(6, [PRIM_ROT_LOCAL, <.29326, -.13087, -.04280, -.94607>
]);
        llSetLinkPrimitiveParamsFast(5, [PRIM_ROT_LOCAL, <.95055, -.04383, -.13239, -.27751>]);
        llSetTimerEvent(1.1-llGetRegionTimeDilation());
    }
    timer() {
        state folded;
    }
}
 
state folded
{
    state_entry() {
        llSetLinkPrimitiveParamsFast(5, [PRIM_ROT_LOCAL, <-.81693, .08286, .11217, .55963>]);
        llSetLinkPrimitiveParamsFast(6, [PRIM_ROT_LOCAL, <-.53989, .11427, .07684, .83040>
]);
        llSetTimerEvent(1.1-llGetRegionTimeDilation());
    }
    timer() {
        state normal;
    }
}