IsColor

From Garry's Mod
Jump to: navigation, search
 IsColor( )

Description

Returns whether the given object does or doesn't have a metatable of a color.

BUG

Engine functions (i.e. those not written in plain Lua) that return color objects do not currently set the color metatable and this function will return false if you use it on them.

Issue Tracker: #2407

Arguments

any Object

The object to be tested

Returns

boolean

Whether the given object is a color or not
Personal tools
Navigation