Entity/IsWeapon

From Garry's Mod
Revision as of 12:14, 27 February 2013 by Facepunch bot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Entity:IsWeapon( )

Contents

Description

Checks if the entity is a weapon or not.

Returns

boolean

isWeapon

Examples

Example

Demonstrates the use of this function.

print( ents.FindByClass("weapon_*")[1]:IsWeapon() )

Output:

Will print true if entity is found, error otherwise.
Personal tools
Navigation