added an instuction in doSomething:
Code:
ent.pan+=time_step;



while code:
Code:
#include <acknex.h>

void doSomething (ENTITY* ent);

void main()
{
	fps_max = 60;
	level_load(NULL);
	
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
	
	doSomething(ent);
}

void doSomething (ENTITY* ent)
{
	while(1)
	{
		ent.pan+=time_step;
	}
}



Professional Edition
A8.47.1
--------------------
http://www.yueklet.de