G.IsEntity

From GMod Wiki

Jump to: navigation, search
Function
Syntax IsEntity( variable )
Where is this used?
Description:
Tests if the type is an entity
Returns: Boolean
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.IsEntity]G.IsEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionChecks if these variables are entities
Used onNewerShared.png
Code
local a = "hello";
local b = Entity( 1 );
 
// check
print( IsEntity( a ), IsEntity( b ) );
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox