char AnimName[16];
res_number++;
sprintf(AnimName,"res%i",res_number);
ChangeAnimation("Event Actor", AnimName, FORWARD);
char AnimName[16];
res_number--;
sprintf(AnimName,"res%i",res_number);
ChangeAnimation("Event Actor", AnimName, FORWARD);
res_number=max(1,min(res_number,10)); //to keep the res value from 1 to 10
sprintf(AnimName,"res%i",res_number);
sprintf(AnimName,"rs%i",res_number);
Users browsing this forum: No registered users and 1 guest