IMaterial.GetMaterialTexture
From GMod Wiki
Function | |
Syntax | Material:GetMaterialTexture( String parameter ) |
Description: | |
Returns the texture of the specified parameter. | |
Returns: | ITexture |
In Object: | Material |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=IMaterial.GetMaterialTexture]IMaterial.GetMaterialTexture [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Outputs the name of the base texture for the 1st players spray. |
---|---|
Used on | |
Code | Material( "Decals/playerlogo01" ):GetMaterialTexture( "$basetexture" ):GetName() |
Output | "decals/YBlood1" |
Additional Notes
- I found the "$basetexture" entry in the VMT file.