now my function looks like this:
Code:

void erdbeere()
{
NewtonBody *body;
c_updatehull(me,0);
set(my,POLYGON|FLAG2);
while(my.z>-50)
{
wait(1);
}
NewtonDestroyBody(nworld, body);
// ent_remove(me);
}



this however leads to an engine crash with no further explanation

btw, how do i setup such a Callback? Never did this before