I've tried change the number but it doesn't seem to works
llSetTexture( gTexture, ALL_SIDES );
if( llSubStringIndex( gTexture, ".anim" ) != -1 )
the other 2 seem to be about the animate thing
llSetTextureAnim( ANIM_ON | LOOP, ALL_SIDES, gFrameX, gFrameY, 0, 0, gRate);
}
else
llSetTextureAnim( LOOP, ALL_SIDES, gFrameX, gFrameY, 0, 0, gRate);