Garry's Mod Wiki

ents.GetCount

number ents.GetCount( boolean IncludeKillMe = false )

Description

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

Arguments

1 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

1 number
Number of entities

Page Links


Special Pages


Wikis

?

Render Time: 35ms

Session 0
DB GetPage 3
Generate Html 8
SaveChanges 9
Render Body 0
Render Sidebar 12