plane = ent_create("mig.mdl",vector(0,4,66), move_plane);

That have to be in a function !!!!! Set it after the wait(2) from the function main().

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

ENTITY* plane;

function move_plane ()
{
//	plane = me;   // set already at ent_create...
	my.ambient = 100;
	while (1)
	{
		if (key_a)		
		my.pan += 3*time_step;			
		if (key_d)
		my.pan -= 3*time_step;			
		if (key_w)
		c_move (me,vector(0,15*time_step,0),    nullvector, GLIDE);
		wait (1);
	}
}

function main ()
{
	level_load ("work08.wmb");
	wait (2);
	plane = ent_create("mig.mdl",vector(0,4,66), move_plane);
}





Last edited by Widi; 04/16/10 20:13.