I am currently at work and for that do not have the code right here.

But the function is something like...
Code:
function doSomeStuff(ENTITY* ent){
   while(ent){
      // do something as logn as the entity exists
      wait(1);
   }
   // do something else -> this is not performed!!!
}


The action is very complex. But it just calls "doSomeStuff(me)" at the beginning!


GameStudio Version: A7 Pro v7.86