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: 32ms

DB GetPage 4
Generate Html 5
SaveChanges (1) 9
Render Body 0
Render Sidebar 11