Just for the sake of curiosity, try this mod...

Code:
...
	sys_marker("se5");
	if(my) 
	{
		sys_marker("se6");
		ent_remove(my);	//will also stop sc_ent_shieldImpact
	}
	sys_marker("se8");

Cause Im curious if its failing on the ent_remove, or the IF.

Then try...
Code:
...
	sys_marker("se5");
	if(my) 
	{
		sys_marker("se6");
		wait(1);
		sys_marker("se7");
		ent_remove(my);	//will also stop sc_ent_shieldImpact
	}
	sys_marker("se8");

Just to see if a wait makes a difference... (I think unlikely).

To be honest, its a REALLY strange error...
Unless, maybe, this function is being called as an event from somewhere...
And is maybe generating an incorrect error message...


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