Try to load an empty level and test the script, it works fine for me:

Quote:

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

function player_action() {
VECTOR temp;
var walk_percentage = 0, stand_percentage = 0, movement_speed = 10;
player = my;
c_setminmax(me);
vec_set(my.min_x,vector(-15,-15,-50));
vec_set(my.max_x,vector(15,15,50));
while (1)
{
player.pan -= 5 * mouse_force.x * time_step;
if(key_pressed(281)) //mouse right
{
ent_animate(my, "walk", walk_percentage, ANM_CYCLE);
walk_percentage += 7 * time_step;
walk_percentage %= 100;

temp.x = movement_speed * (mouse_right)*0.6 * time_step;
temp.y = 0;
temp.z= 0;
c_move (my, temp, nullvector, IGNORE_PASSABLE | GLIDE );
}
else
{
ent_animate(my, "stand", stand_percentage, ANM_CYCLE);
stand_percentage += 5 * time_step;
}
wait(1);
}
}


function main() {
fps_max = 60;
video_mode = 11;

level_load(NULL);
wait(1);

ent_create("player.mdl",vector(330,0,0),player_action);
}



"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