added
Code:
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));



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)
{
	player = ent;
	
	while(1)
	{
		ent.pan+=time_step;
		vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
		wait(2+floor(random(10)));
	}
}


Last edited by Firoball; 12/30/13 13:12.