I dont understand why you dont get a compile error, just a c-script thing I spose.
But the important thing to remember is that you CANNOT pass parameters to an event!
All you can do is store the value into one of the entities skills, then the event
can get to it using the MY or ME pointer.
Like so...
Code:
function hit_event(local_laserball_number)
{
	if (event_type == EVENT_BLOCK)
	{
   		effect(laserball_explo_effect,15,my.x,normal);
	   	laserball_effect_destroy(my.skill33);   //use instance number stored in skill33
   		wait(1);
	   	ent_remove(me);
	}
	if (event_type == EVENT_ENTITY)
	{
   		effect(laserball_explo_effect,15,my.x,normal);
	   	laserball_effect_destroy(my.skill33);   //use instance number stored in skill33
   		wait(1);
   		ent_remove(me);
	}
}

action laserball
{
	wait(1);            //always a good idea on any action
	my.skill33 = 1;     //for storing instance number skill 1 to 40 is available below version A6.2
                              //skills 1 to 100 is available at or above version A6.2

	my.INVISIBLE = ON;
	
	my.ENABLE_BLOCK = ON;
	my.ENABLE_ENTITY = ON;
	my.EVENT = hit_event(my.skill33);

	while (my != NULL)
	{
		c_move(me, laserball_move, NULLVECTOR, ACTIVATE_TRIGGER|GLIDE);

		wait(1);
	}
}



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial