#include <acknex.h>
#include <default.c>
var walk_percentage;
function main()
{
video_mode = 7;
level_load ("Huis.wmb");
model_zombie=ent_create("zombiek.mdl",vector(0,0,0),NULL)
wait (2); // wait until the level is loaded
camera.z = 120; // choose a convenient height
camera.tilt = -15; // and tilt angle for the camera
}
action attack()
{
while (1)
{
ent_animate(model_zombie,"attack",walk_percentage, ANM_CYCLE); // "walk" animation loop
walk_percentage += 3 * time_step; // 3 = animation speed for "walk"
wait (1);
}
}
Now it says that there is an error in this script. anyone knows why?