IMaterial.IsError

From GMod Wiki

Jump to: navigation, search
Function
Syntax Material:IsError( )
Description:
Returns false if the material initialized properly, and true if it didn't.
Returns: Boolean
In Object: Material
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=IMaterial.IsError]IMaterial.IsError [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionChecks if the material pp/rt is an error
Used onNewerClient.png
Code
local mat = Material("pp/rt");
print(mat:IsError());
Outputfalse, because pp/rt is the RT Camera texture and therefore is never an error.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox