#is texturegroup possible in viewmodel arms?

1 messages · Page 1 of 1 (latest)

fresh frigate
#

I've copied texturegroup code from playermodel .QC and paste it in viewmodel arm .QC and it didn't work

hollow ledge
#

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

fresh frigate
hollow ledge
fresh frigate
#

Thanks for the code anyways!