color changing prim

Creating scripts
Post Reply
User avatar
Constance Peregrine
Posts: 2353
Joined: Sun Dec 23, 2012 11:35 am
Has thanked: 2784 times
Been thanked: 1489 times

color changing prim

Post by Constance Peregrine »

Code: Select all

//color changing prim
default
{
    
    state_entry()
    {
        llSetTimerEvent(3.0);
    }
    
    timer()
    {
        float x = llFrand(1);
        float y = llFrand(1);
        float z = llFrand(1);
        llSetColor(<x,y,z>,ALL_SIDES);
    }
}
// END //
These users thanked the author Constance Peregrine for the post:
Adagio Greenwood
Laissez faire et laissez passer, le monde va de lui même!
My little sounds store https://www.kitely.com/market?store=2040306

Ephemeral wanderer...
Post Reply