IMaterial.GetMaterialString

From GMod Wiki

Jump to: navigation, search
Function
Syntax Material:GetMaterialString( String VMTString )
Description:
Gets the specified VMT string from the material
Returns: Unknown (String?)
In Object: Material
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=IMaterial.GetMaterialString]IMaterial.GetMaterialString [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionFetches the base texture of a material
Used onNewerClient.png
Code
local mat = Material("pp/blurx");
print(mat:GetMaterialString("$basetexture"));
OutputProbably nil because $basetexture hasn't been sent yet!


See also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox