ok i ll try out:

ok it looks like that the me pointer is automatically passed, thank you superku. But an other problem arises: When the entity is removed, the local entity of the calling function becomes invalid, what to do laugh

Code:
void remove_temp()
{
   wait(1);
   ent_remove(me);//now the temp pointer of the calling function becomes invalid

}
void ent_1(ENTITY* temp)
{
   temp.emask = ENABLE_ENTITY;
   temp.event = remove_temp;//here is the problem: no parameter can be passed
   while(1)//while(temp)
   {
      c_move (temp, ...);//temp becomes invalid when it is removed, invalid pointer error
      wait(1);
   }

}



no idea?

Last edited by MPQ; 12/09/10 09:35.

new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com