Originally Posted By: Redeemer
You must create the object after the level has loaded...

Code:
level_load ("Huis.wmb");
wait (2); // wait until the level is loaded
ent_create("zombiek.mdl",vector(0,0,0),attack)


Otherwise the script will crash!

Originally Posted By: manual
The level_load() function is now executed immediately, instead of one frame delayed. This can lead to a different behavior when your code for some reason relied on a delayed level loading.


try
Code:
#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
}