• How can i make choose skin for 1 weapon?
    20 replies, posted
i have viev skin but i can only add 1 skin. How can i make select panel with more skin?
so far you made 3 threads, all of them are super basic and give no information, real question or anything. i dont even know what you want in this one now.
Gamestory you need to give more detail we have no god dammn idea what you're talking about what do you mean skins?
materials skins
doesnt help
i can make vtf file
wtf you even talking about? all your saying is "i have skin" "material skin" "i can make vtf file" Okay? so? I can do that too?
my english school note was 3
And now you see why you should've paid attention in school. You're going to miss out on a lot of good stuff.
Im assuming you want a way to slect between skins for a viewmodel using a GUI. Does this sound correct?
yes
You could copy the weapon and create a second weapon with another skin, that's what you would be able to do. I don't know if theres a skin choose menu already. If it's not you wont be able to program it on ur own probs.
i cant make self
www.gmodstore.com/jobmarket
I'm going to explain this quite broadly, but provide links that will help. Here's what you need to do to change a skin color for a specific weapon: 1. Use this method posted by Lexic, 9 years ago: local mat = Material"The/material/on/the/weapon" local met = Material"your/material" mat:SetMaterialTexture("$basetexture", met:GetMaterialTexture"$basetexture") mat:SetMaterialTexture("$bumpmap", met:GetMaterialTexture"$bumpmap" )-- if the weapon material doesn't have a bumpmap, then remove this line. If it does, make sure your one does!~ I'm sure theres a way to properly only do this for a specific entity on the map. But I can right now only think of this way: In order to use the script above, but (in a hilariously impractical way) for only one player in the level: 2. Create 64 copies (one for each player that could hold the weapon on your server) of the weapon and its materials by way of hexing them and creating identical copies with only different names for the weapon models and for the materials. How to hex: https://steamcommunity.com/sharedfiles/filedetails/?id=922631904 This way when you give a player the weapon, you make sure they use a different model than other players. When you run the script above for that players materials only, only their weapon will change. Of course this would mean having to download 64 copies of the weapon to the clients.
ok
What? Entity:SetSubMaterial
i have only shared file on a weapon.
Look inside, link to models and materials. Try find. Copy materials. Different name. Use above function to change material
ok and copy the code 5 time
Sorry, you need to Log In to post a reply to this thread.