I create a action and event for bullet.
Code:
function mermi_event()
{
	if(event_type == ENABLE_IMPACT)
	{
		ent_remove(me);
	}
}

function mermi()
{
	set(my, ENABLE_IMPACT);
	my.event = mermi_event;
	reset(my, PASSABLE);
	my.pan = player.pan + 270;
	my.tilt = player.tilt;
	my.ambient = 100;
	while (1)
	{
		you = player;
		c_move(me, vector(0,60*time_step,0), nullvector,IGNORE_FLAG2+IGNORE_CONTENT+IGNORE_PASSABLE+IGNORE_ME+IGNORE_SPRITES+IGNORE_YOU);
		wait (1);
	}
}



But, event is don't work. Below is picture. Bullet not disappeared.


Last edited by WickWoody; 12/01/09 17:35.