#include <acknex.h>
#include <default.c>
#define walk_percentage skill11
action zombie_bars()
{
while (1)
{
my.walk_percentage += 3 * time_step; // 3 = animation speed for "walk"
ent_animate(me, "attack", my.walk_percentage, ANM_CYCLE); // "walk" animation loop
wait (1);
}
}
function main()
{
video_mode = 7;
level_load ("Huis.wmb");
ent_create("zombiek.mdl",vector(0,0,0), zombie_bars);
camera.z = 120; // choose a convenient height
camera.tilt = -15; // and tilt angle for the camera
}