I dont know if you can control the limbs. But here is the code.
int frame;
void animation(int object, int start, int end)
{
if (frame<=end)
{
dbSetObjectFrame(object, frame);
frame++;
}
else
frame=start;
}
start and end ar the beggining and the ending frame.
And frame is a global int.
The only mention that I have, is that I haven't tested the function on multiple animed objects. In my game I needed animation just for one.
Also the length of the animation may differ from your editor to the game. I had a 100 frame animation and in the game it had 16000 or something like this.
You can modify the code if you need to.
Hope it helps. Please reply if you have any problem.