Garry's Mod Wiki

Revision Difference

Player:AddCount#560257

<function name="AddCount" parent="Player" type="classfunc"> <description><note>See [GetCount](/gmod/Player:GetCount) for list of types</note>Adds an entity to the total count of entities of same type.</description> <description><note>This function is only available in Sandbox and its derivatives.</note>Adds an entity to the player's list of entities of the same type. See <page>Player:GetCount</page> to get the current count of entities of an entity type added with this function.</description> <realm>Shared</realm> <file line="72-L91">gamemodes/sandbox/gamemode/player_extension.lua</file>⤶ <args> <arg name="str" type="string">Entity type</arg>⤶ <arg name="ent" type="Entity">Entity</arg>⤶ <arg name="str" type="string">The type of this Entity.</arg>⤶ <arg name="ent" type="Entity">The Entity you want to add to the list.</arg>⤶ </args> </function>⤶ </function>