Originally Posted By: vlau
Assign the following action to your models :
Code:
action moveObj()
{
   while(my)
   {
      while(my.skill2 < 100)
      {
         c_move(my,vector(my.skill1*time_step,0,0),nullvector,GLIDE);
	 my.skill2 += 5 * time_step;  // 5 = animation speed
	 ent_animate(my,"walk",my.skill2,ANM_CYCLE);
	 wait(1);
      }
      my.skill2 = 0;  // reset animation percentage
      wait(-0.1);
   }
}


You may edit different movement speed "skill1" to your
models in WED.



i cannot use an action here. as am reading a set of array values for the distance to be moved.

my array values are like this:

"move, agent_ID, x, y, z" - for each entity.

the time between 2 values is 0.1 seconds. can i implement it in my for loop which i posted in my earlier post ?


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook