Quote:
Originally Posted by psychonic
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)
{
__________________