Quote:
I have a script here for my model and the animation wich plays without a script but not with one,
problem is that i need to apply an material function!
the script is the follow:
Code:
action my_model
{
my.material = mat_alphatest;
my.skill1 += 3*time_step;
if (my.skill1 > 100) my.skill1 -= 100;
ent_animate(me,"Anim",my.skill1,ANM_CYCLE);
wait(1);
}
Maybe try this this.
Code:
action my_model
{
my.material = mat_alphatest;
my.skill1 += 3*time_step;
if (my.skill1 > 100) {my.skill1 -= 100;}
ent_animate(me,"Anim",my.skill1,ANM_CYCLE);
wait(1);
}