• SetMaterial applies to everything
    2 replies, posted
function ATTACHMENT:Attach(wep) wep.Owner:GetViewModel():SetMaterial("skins/acu") end function ATTACHMENT:Detach(wep) wep.Owner:GetViewModel():SetMaterial("") end Issue is, when the function is called, whenever I switch to another SWEP than the concerned one, the material also applies. Which class should I be using instead of GetViewModel() in order to fix my whole code?
That's the problem with using the same viewmodel entity for every weapon. You will need to reset the material on weapon switch.
Aight, thanks
Sorry, you need to Log In to post a reply to this thread.