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);
}
when i try to run it i get follow error:
Code:
< (my.skill1>100)my.skill1-=100>
mymodel.wdl 5:0 (): Syntax error - - missing semicolon? my.skill1-=100
.
Script error
Engine shutdown
the semicolon is there, i marked it red above in the code.
So whats the problem?
i'm using A6 commercial v6.60