#include <acknex.h>
#include <default.c>

action attack()
var walk_percentage;
{
while (1)
{
ent_animate(me,"attack",walk_percentage, ANM_CYCLE); // "walk" animation loop
walk_percentage += 3 * time_step; // 3 = animation speed for "walk"
walk_percentage %= 100;
wait (1);
}
}

function main()
{
video_mode = 7;
level_load ("Huis.wmb");
wait (2); // wait until the level is loaded
ent_create("zombiek.mdl",vector(0,0,0),attack)
camera.z = 120; // choose a convenient height
camera.tilt = -15; // and tilt angle for the camera
}



"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends