This would allow skipping through entities based on their number:
Code: Select all
int StatSearch = ( STAT_DEFAULT | STAT_PLAYER | STAT_USER );
ThinkerIterator it = ThinkerIterator.Create();
Actor mo;
while (mo = Actor(it.Next())
{
if (!(mo.StatNumber & (StatSearch)))
continue;
// Other code here.
}