IMaterial.GetMaterialTexture

From GMod Wiki

Jump to: navigation, search
Function
Syntax Material:GetMaterialTexture( String parameter )
Description:
Returns the texture of the specified parameter.
Returns: ITexture
In Object: Material
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=IMaterial.GetMaterialTexture]IMaterial.GetMaterialTexture [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionOutputs the name of the base texture for the 1st players spray.
Used onNewerClient.png
Code
 Material( "Decals/playerlogo01" ):GetMaterialTexture( "$basetexture" ):GetName() 
Output"decals/YBlood1"


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox