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);

}




Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus