thanx with the pattern of txsmi it works pretty well, the code looks like that:
Code:
int remove_temp()
{
   return (my.skill1 = 1);
}

void ent_move(ENTITY *temp)
{
   temp.emask = ENABLE_ENTITY;
   temp.event = remove_temp;

   while(!temp.skill1)
   {
      c_move (temp, ...);
      wait(1);
   }

   ent_remove(temp);
}

void create_ent()
{
   ENTITY *temp1;
   temp1 = ent_create (...);
   ent_move (temp1);
}



Ok, the handing over of pointers works quite well so far, but why does lite-c not support references, I thought it would be more like C++ and supports this feature, but here it look more like C. Does lite-c support Classes?

Last edited by MPQ; 12/24/10 13:48.

new project in early stage...

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