View Single Post
devilesk
Junior Member
Join Date: May 2019
Old 10-22-2019 , 11:50   Re: GetEntityCount problem.
Reply With Quote #5

From KyleS's comment on the API page for GetEntityCount:
Quote:
This isn't what you think it is. This function will return the highest edict index in use on the server, not the true number of active entities.
Another discussion where this came up https://forums.alliedmods.net/showpo...68&postcount=6

EDIT: I know this is an old thread but it's also the first search result for "sourcemod GetEntityCount" and I was also wondering about the behavior of GetEntityCount, because I often see code that loops through all entities using GetEntityCount as an upper bound.

Last edited by devilesk; 10-22-2019 at 11:52.
devilesk is offline