Quote:
The second one will only work if there is NO waits in there. And I believe XD1v0 needed them in there.

You understand rightly, i need use wait in function. I want do something like this.
Code:
#include <acknex.h>
#include <default.c>


PANEL* cool_pan = 
{
	scale_x = 0.5; scale_y = 0.5;
	flags = SHOW;
}
function create_screen_bmap (BMAP* this,VECTOR* pos,VECTOR* aang)
{
	BMAP* fb = bmap_createblack(screen_size.x,screen_size.y,24);
	vec_set(camera.x,pos);vec_set(camera.pan,aang);
	wait(1);// render screen in new position and angle
	bmap_for_screen(fb,0,1);
	this = fb;
}

void main ()
{
	level_load(0);ent_create("sphere.mdl",nullvector,NULL);

	create_screen_bmap(cool_pan.bmap,vector(-50,0,0),nullvector);beep();
	// I want render screen into panel.bmap, but this dont work
}


Last edited by XD1v0; 04/28/09 08:40.

A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram