Animation + Bone rotate

Posted By: 3DGSDutch

Animation + Bone rotate - 06/20/09 20:54

Hi.

Is it possible to run an animation:

Code:
if(key_r){ seats = 1; }
		if(seats == 1){ my.skill1 += 1*time_step; }
      if (my.skill1 > 100) my.skill1 -= 100; 
      ent_animate(me,"gondel",my.skill1,ANM_SKIP);



And at that same moment rotate a bone?

Code:
if (key_q){ gondelarmsnelheid += 0.005; tegen = 1; mee = 0;}
		if (key_a){ gondelarmsnelheid -= 0.005; mee = 1; tegen = 0;}
		if(tegen == 1 && gondelarmsnelheid >= 1.8){ gondelarmsnelheid = 1.8; }
		if(tegen == 1 && gondelarmsnelheid == 0){ gondelarmsnelheid = 0; }
		if(mee == 1 && gondelarmsnelheid <= -1.8){ gondelarmsnelheid = -1.8; }
		if(mee == 1 && gondelarmsnelheid == 0){ gondelarmsnelheid = 0; }
		
		ent_bonerotate(my,"gondelarmkruis",vector(gondelarmsnelheid,0,0));



I tried this, and it won't work. Only the animation works. When i remove the animation code i can rotate the bone. But not if they are both in the script.

How can i rotate the bone, and run the animation both?
Hope somone help me out,

Regards,
3DGS Dutch
Posted By: bart_the_13th

Re: Animation + Bone rotate - 06/21/09 04:55

You cant use vertex animation and bone rotation at the same time.
Use bone animation instead...
Posted By: 3DGSDutch

Re: Animation + Bone rotate - 06/21/09 07:12

And how do i make Vertex Animation ? Just animate in MED and de-select the bone animation icon?

It needs to rotate a part of the model with bones. And also animate 3 other parts from the same part.
Posted By: the_clown

Re: Animation + Bone rotate - 06/23/09 12:27

Do ONLY bones animations, NO vertex animations.
Posted By: EvilSOB

Re: Animation + Bone rotate - 06/23/09 12:43

If a model contains ANY bones, vertex animations dont actually move at run-time.
© 2023 lite-C Forums