Code:
action npc()
{
  shooting(); //place outside the inner while loop, will start a new coroutine
while(1) //this is while loop #1 
{
  //do some stuff constantly 
 wait(1);
}
}