Added:
Code:
drawText3DRotate("Hold your horses!", ent.x, vector(random(255),random(255),random(255)));



Code:
#include <acknex.h>

void doSomething (ENTITY* ent);
void movePlayer();
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color);

void main()
{
	warn_level = 6;
	fps_max = 60;
	d3d_lines = 3;
	level_load(NULL);
	camera.x = -96;
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
	ENTITY* entTerrain = ent_createterrain(NULL, vector(0, 0, -20), 45, 45, 100);
	
	video_set(sys_metrics(0) * 0.85, sys_metrics(1) * 0.85, 0, 2);
	
	doSomething(ent);
}

void doSomething (ENTITY* ent)
{
	player = ent;
	movePlayer();

	while(1)
	{
		ent.pan+=time_step;
		vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
		c_setminmax(ent);
		vec_set(sky_color,vector(random(255),random(255),random(255)));
		ent.z+=random(ent.scale_x*2)-ent.scale_x;	

		if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
		{
			drawText3DRotate("Hold your horses!", ent.x, vector(random(255),random(255),random(255)));
		}
		
		wait(2+floor(random(10)));
	}
}

void deformTerrain(ENTITY* ent)
{
}

void movePlayer()
{
	VECTOR speed;
	while(player != NULL)
	{
		speed.y = (key_a - key_d) * 3 * time_step;
                wait(1);
	}
	
}

void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color)
{
}



"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