Just for the sake of curiosity, try this mod...
...
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...
...
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...