I'm reworking a wing flapping script I found online. The original script was overly complicated so I pared it down to the following. Problem is it doesn't work. The child prims *are* set to flexible and the gravity is indeed changed, but nothing happens. Well, it appears that there is a small amount of tapering going on, but it's sporadic... Any help would be appreciated! // Gravity settings for the flaps
float UP = 1.0;
float DOWN = -1.0;
float MID = 0.0;
// Looping order of the flaps
list FLAPS;
// internal values
integer current_flap = 0;
default
{
state_entry() {
FLAPS = [ UP, DOWN, UP, DOWN, UP, DOWN, MID, MID, MID, MID ];
llSetTimerEvent( 1.0 );
}
timer() {
if ( current_flap >= 9 ) current_flap = 0;
{
llSetLinkPrimitiveParams( LINK_ALL_CHILDREN,
[PRIM_FLEXIBLE, TRUE,
3,
llList2Integer(FLAPS, current_flap),
0.0,
0.0,
1.0 ,
<0, 0, 0>]);
}
++current_flap;
}
}