G.IsEntity
From GMod Wiki
Revision as of 20:39, 11 November 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax |
IsEntity( variable ) Where is this used? |
Description: | |
Tests if the type is an entity | |
Returns: | Boolean |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.IsEntity]G.IsEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Checks if these variables are entities |
---|---|
Used on | |
Code | local a = "hello"; local b = Entity( 1 ); // check print( IsEntity( a ), IsEntity( b ) ); |
Output | N/A |