if the model has all skins packed into the mdl file than.

Code:
var time_change=0;

while(1)
{
time_change+=time_step/16;
if(time_change>1)
{
 time_change+=1;
 my.skin+=1;
}
if(time_change>=3)
time_change=0;
wait(1);
}



changes skins every second for 3 skins

basically my.skin+=nX
http://www.conitec.net/beta/aentity-skin.htm
manual example
Code:
action flipskins()
{
  while (1)
  {
    my.skin = my.skill1 % 32; // 32 Skins
    my.skill1 += time_step; // 16 skins per second
    wait (1);
  }
}



Going to check this for errors after posting
Code:
var dist_to_move=0;
var skin_count=0;
// vSpeed = movement speed;
while(1)
{
 // ...STUFF
 dist_to_move=(vSpeed*3)*time_step;
 skin_count=vSpeed/dist_to_move;
 c_move(my,vector(vSpeed*time_step,nX,nX),nullvector,STUFF);
 my.skin=integer(skin_count);
wait(1);
}


Last edited by Malice; 06/21/16 18:34.