ents.GetCount

From Garry's Mod
Jump to: navigation, search
 ents.GetCount( )

Description

Gives you the amount of currently existing entities. Similar to #ents.GetAll but with much better performance.

Arguments

boolean IncludeKillMe=false

Include entities with the FL_KILLME flag. This will skip an internal loop, and the function will be more efficient as a byproduct.

Returns

number

Number of entities
Personal tools
Navigation