Player/CheckLimit

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (arg name)
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Description=Checks if the limit is hit or not. If it is, it will throw a notification saying so.
+
|Description={{SandboxDerived}}
 +
 
 +
Checks if the limit is hit or not. If it is, it will throw a notification saying so.
 +
 
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes

Latest revision as of 13:57, 7 June 2019

 Player:CheckLimit( )

Description

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

Checks if the limit is hit or not. If it is, it will throw a notification saying so.

Arguments

string limitType

Limit type. In unmodified Sandbox possible values are:

  • "props"
  • "ragdolls"
  • "vehicles"
  • "effects"
  • "balloons"
  • "cameras"
  • "npcs"
  • "sents"
  • "dynamite"
  • "lamps"
  • "lights"
  • "wheels"
  • "thrusters"
  • "hoverballs"
  • "buttons"
  • "emitters"

Returns

boolean

Returns true if limit is not hit, false if it is hit
Personal tools
Navigation