• [Another need of assistance] Materials on SWEP viewmodels/world models
    3 replies, posted
Goal: Apply "models/shadertest/shader4" material to the view model of a SWEP. Anyone know how to go about doing this? Thanks :-)
self:GetOwner():GetViewModel():SetMaterial( "mat" ) in the deploy function.
[QUOTE=code_gs;50203359]self:GetOwner():GetViewModel():SetMaterial( "mat" ) in the deploy function.[/QUOTE] I did this yet, it's changing the material for all the weapons? Bare with me during this one, this is my first time creating a SWEP.
[QUOTE=dannyf127;50208249]I did this yet, it's changing the material for all the weapons? Bare with me during this one, this is my first time creating a SWEP.[/QUOTE] That's because the way it works there is one view model entity and its model gets changed. But when the model changes it doesn't reset the material. When your weapon is holstered reset the view model material.
Sorry, you need to Log In to post a reply to this thread.