Player/GetCount

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Description=Gets total count of entities of same class.<br/>
+
|Description={{SandboxDerived}}
{{Note|This function is only available in Sandbox and its derivatives}}
+
Gets total count of entities of same class.
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes
|Name=GetCount
 
|Parent=Player
 
 
}}
 
}}
 
{{Arg
 
{{Arg

Latest revision as of 13:59, 7 June 2019

 Player:GetCount( )

Description

This function or feature is only available in the Sandbox gamemode and its derivatives.

Gets total count of entities of same class.

Arguments

string type

Entity type to get count of.

Arguments

number minus=0

If specified, it will reduce the counter by this value. Works only serverside.
Personal tools
Navigation