G.IsVector

From GMod Wiki

Jump to: navigation, search
Function
Syntax IsVector( Variable )
Where is this used?
Description:
Tests if the given argument is a vector or not
Returns: Boolean
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.IsVector]G.IsVector [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionTests if the given argument is a vector or not
Used onNewerShared.png
Code
local a = "test";
local b = Vector( 0, 0, 100 );
 
// test
print( IsVector( a ), IsVector( b ) );
OutputBoolean false/true
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox