ents/GetCount

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(created)
 
(Not quite the same.)
Line 2: Line 2:
 
|Description={{NextUpdate}}
 
|Description={{NextUpdate}}
 
Gives you the amount of currently existing entities.
 
Gives you the amount of currently existing entities.
Same as #{{LibraryFunction|ents|GetAll}} only with much better performance.
+
Similar to #{{LibraryFunction|ents|GetAll}} but with much better performance.
 +
{{Note|Unlike {{LibraryFunction|ents|GetAll}}, this function includes entities marked for removal (i.e. FL_KILLME flag is set).}}
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=No
 
|IsClass=No

Revision as of 22:01, 11 April 2017

 ents.GetCount( )

Description

Next Update Change

This feature is only available in the next update.

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

NOTE

Unlike ents.GetAll, this function includes entities marked for removal (i.e. FL_KILLME flag is set).

Returns

number

Number of entities
Personal tools
Navigation