Garry's Mod Wiki

Revision Difference

ents.GetCount#514534

<function name="GetCount" parent="ents" type="libraryfunc">⤶ <description>⤶ Gives you the amount of currently existing entities.⤶ Similar to #<page>ents.GetAll</page> but with much better performance.⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="IncludeKillMe" type="boolean" default="false">Include entities with the FL_KILLME flag. This will skip an internal loop, and the function will be more efficient as a byproduct.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">Number of entities</ret>⤶ </rets>⤶ </function>⤶ ⤶