Hello Everyone, does anyone know how to have a gun have a custom texture, without editing the actually gun itself? Thanks
-Tobias
[editline]1st April 2014[/editline]
Anyone?
Use [URL="http://wiki.garrysmod.com/page/surface/SetMaterial"]SetMaterial[/URL]
For example, I use this:
[code]
SetMaterial( "phoenix_storms/chrome.vtf" )
[/code]
You might be able to do something a little more advanced with the [URL="http://wiki.garrysmod.com/page/render"]Render library[/URL] to only apply the material to a certain existing material on the gun.
[QUOTE=smithy285;44431191]Use [URL="http://wiki.garrysmod.com/page/surface/SetMaterial"]SetMaterial[/URL]
For example, I use this:
[code]
SetMaterial( "phoenix_storms/chrome.vtf" )
[/code]
You might be able to do something a little more advanced with the [URL="http://wiki.garrysmod.com/page/render"]Render library[/URL] to only apply the material to a certain existing material on the gun.[/QUOTE]
I will try it out, thank you
[editline]2nd April 2014[/editline]
[QUOTE=smithy285;44431191]Use [URL="http://wiki.garrysmod.com/page/surface/SetMaterial"]SetMaterial[/URL]
For example, I use this:
[code]
SetMaterial( "phoenix_storms/chrome.vtf" )
[/code]
You might be able to do something a little more advanced with the [URL="http://wiki.garrysmod.com/page/render"]Render library[/URL] to only apply the material to a certain existing material on the gun.[/QUOTE]
This doesn't seem to be working
Could anyone clarify with an example on this? I too would like to change the texture of a weapon entity, but don't have a clue where to begin with the render library.
Sorry, you need to Log In to post a reply to this thread.