hey... something's wrong...
i'd check the action.. because the error says "Crash in unit SYS"
action unit() //animation of "walk" for this entity
{
my.emask |= ENABLE_CLICK;
my.event = scan_ent;
attack_percent += 3*time_step;
ent_animate(me,"attack",attack_percent,ANM_CYCLE);
while(1)
{
if(my.move == 1)
{
walk_percent += 3*time_step ;
ent_animate(me,"walk",walk_percent,ANM_CYCLE);
c_move(me,vector(Distance,0,0),vector(0,0,0),IGNORE_PASSABLE | GLIDE);
if(vec_dist(Distance.x,my.x) < 10)
{
my.move = 0;
}
}
wait(1);
}
}
here in triggers the error
but when I removed this part
if(vec_dist(Distance.x,my.x) < 10)
{
my.move = 0;
}
the error disappeared.. when i click the entity, it plays the animation. But there's an error again in clicking the ground..
when i click the ground after I'd click the entity... the game doesn't respond..
what is the meaning of this?
if(vec_dist(Distance.x,my.x) < 10)
{
my.move = 0;
}