Resizing Picture Frame

Put this script in a prim, make a grid of that prim

//This is the variable/trigger that tells us whether or not we have already resized
integer resized=0;

default
{
    state_entry()
    {
        //Set the door to its small state
        //To mod, change this value to the desired small size
        llSetPrimitiveParams([PRIM_SIZE, <1.0, 0.069, 1.0>]);
        //Reset the resized variable
        resized=0;
    }

    touch_start(integer total_number)
    {
        //Check to see if we have resized
        if(resized==0)
        {
            //No we havent, set to the new big size
            //To mod, change this value to the desired large size
            llSetPrimitiveParams([PRIM_SIZE, <3.5, 0.5, 3.5>]);
            //Set the trigger: We have resized
            resized=1;
        }
        else
        {
            //We are already big, go back to the small size
            //To mod, change this value to the desired small size
            llSetPrimitiveParams([PRIM_SIZE, <1.0, 0.069, 1.0>]);
            //Reset the resized variable
            resized=0;
        }   
    }
}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License