//--------------------------------------------------------------------
// Action: Cow
//--------------------------------------------------------------------
action act_cow()
{
VECTOR vecTemp;
vec_set(vecTemp.x, my.x);
var anim_percentage = 0;
set(my, POLYGON);
while(1)
{
while( vec_to_screen(vecTemp, camera) != NULL) //visible to screen
{
flagCowTest += 1;
ent_animate(my, "CowEat", anim_percentage, NULL);
anim_percentage += 2 * time_step;
anim_percentage %= 100;
wait (1);
}
wait(1);
}
}