#is texturegroup possible in viewmodel arms?
1 messages · Page 1 of 1 (latest)
How do you know they don't work?
If you want to make it so that when you change the texturegroup on the model directly in the game, and also changed the texture groups on the hands you need to write this thing in lua file.
something like this```lua
if CLIENT then
local function Viewmodel( vm, ply, weapon )
if ply:GetModel() == "models/your/path/to/model.mdl" then
local skin = ply:GetSkin()
local hands = ply:GetHands()
if ( weapon.UseHands or !weapon:IsScripted() ) then
if ( IsValid( hands ) ) then
hands:SetSkin( skin ) -- In case you want to change skin too
end
end
end
end
hook.Add( "PostDrawViewModel", "hook_un_name", Viewmodel )
end
Thanks, what did I do wrong here?
Did you check for skins on the hands themselves? In hlmv, for example.
It worked, I forgot the texturegroup code in arm QC
Thanks for the code anyways!