ents.GetCount

From Garry's Mod
Revision as of 22:01, 11 April 2017 by Bo98 (Talk | contribs)
Jump to: navigation, search
 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