You can pass a pointer to a pointer like this:

Code:
void runWhileEntity(ENTITY** inLight)
{
	while(*inLight != NULL)
	{
		*inLight.x += time_step;
		my_temp[0] = *inLight.x;
	}
	beep();
	beep();
	beep();
}

void main()
{
	set(deb_pan,SHOW);
	level_load(NULL);
	wait(3);
	
	ENTITY* theEnt;
	theEnt = ent_create(NULL,nullvector,NULL);

	runWhileEntity(&theEnt);
	while(key_t == OFF) wait(1);
	ent_remove(theEnt);
	theEnt = NULL;
}




Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com