Entity/GetClass

From Garry's Mod
Revision as of 07:13, 17 April 2014 by Bo98 (Talk | contribs)
Jump to: navigation, search
 Entity:GetClass( )

Contents

Description

Returns the classname of a entity.

Returns

string

The entity's classname

Examples

Example

Prints the classname of the weapon that the player is holding.

print( LocalPlayer( ):GetActiveWeapon( ):GetClass( ) )

Output:

Prints the classname of the weapon that the player is holding. (ie weapon_crowbar)
Personal tools
Navigation