04-09-2009 23:02
I found the blink script in some slug thing, and had some fun with it. I thought to myself, wouldn't this look cooler if it was the dimple blinking instead? Well here it is, Hinoserm is credited for originating this public domain script.

CODE

// Eye Blinker Sphere Dimple Version by Infiner Morigi.
//
// Hinoserm wrote this. It is public domain.
// Infiner Morigi changed it to a state switch, and also a sphere dimple.

default //Open Eyes
{
state_entry()
{
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SPHERE, 0, <0,1,0>, 0, <0,0,0>, <.3,1.0,0>] );
llSetTimerEvent(llFrand(8.9)+1);
}

timer()
{
state blink;
}
}

state blink
{
state_entry()
{
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SPHERE, 0, <0,1,0>, 0, <0,0,0>, <0.15,1.0,0>] );
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SPHERE, 0, <0,1,0>, 0, <0,0,0>, <0.0,1.0,0>] );
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SPHERE, 0, <0,1,0>, 0, <0,0,0>, <0.15,1.0,0>] );
state default;
}
}