View Single Post
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 07-10-2015 , 04:06   Re: Security entity limit
Reply With Quote #15

Quote:
Originally Posted by psychonic View Post
This could be more efficiently done by using FindEntityByClassname with "*" to only loop indexes that have valid entity at them, instead of checking each individually. (You'd still want to check <2048 to stop once past networked ents).
Ah yes, like in hammer, we can target every entity with a "*", thanks I will try it.

Edit: I done this
new iEnt = BaseMapsEntity;
while((iEnt = FindEntityByClassname(iEnt, "*")) != -1)
{
__________________

Last edited by Benoist3012; 07-10-2015 at 04:15.
Benoist3012 is offline