Works just like it should... Um your code doesn't but the AUM 94 code does... Look up _startup in functions.

Code:
VIEW* mirror_view;
ENTITY* mirror_sprite;

function mirror_startup()
{
	while(!mirror_sprite)
	wait(1);
	
	
	mirror_view = view_create(10);
	wait(2);
	set(mirror_view,SHOW);
	mirror_view.size_x = 192;
	mirror_view.size_y = 230;
	mirror_view.bmap = bmap_for_entity(mirror_sprite,0);
	mirror_view.x =mirror_sprite.x;
	mirror_view.y = mirror_sprite.y;
	mirror_view.z = mirror_sprite.z;
	mirror_view.pan = mirror_sprite.pan;
	mirror_view.tilt = mirror_sprite.tilt;
	mirror_view.roll = mirror_sprite.roll;
}
	

action mirror_act()
{
	mirror_sprite = my;
	set(my,PASSABLE | DECAL);
   
}



It is clear by your problem and the AUM code that passing the my-pointer is getting you a NULL return by bmap_for_entity. It is also possible that the my-pointer is being set to the newly created view, but I'm not going to test to find out as the code above is working.

Last edited by Malice; 06/28/13 18:02.