> Is there a clean way to count the totally number of a certain entity in
> map?
>
> -Ron

By "certain entity" I assume you mean of the same classname...

edict_t *pEdict = NULL;
int count = 0;

while (pEdict=UTIL_FindEntityByClassname(pEdict, "classname_to_search_for"))
{
   count++;
}

Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to