Code:
function count_all_ents()
{
  var entcount = 0
  for(you = ent_next(NULL); you; you = ent_next(you)) 
    entcount ++;
  }
return(entcount);
} 


[...]
var allentities = count_all_ents();



ent_next helps alot laugh


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<