player_manager.AddValidHands
player_manager.AddValidHands( string name, string model, number skin = 0, string bodygroups = "0000000", boolean matchBodySkin = false )
Description
Assigns view model hands to player model.
Arguments
4 string bodygroups = "0000000"
Bodygroups to apply to the hands. See Entity:SetBodyGroups for help with the format.
5 boolean matchBodySkin = false
If set to
true
, the skin of the hands will be set to the skin of the playermodel.
This is useful when player models have multiple user-selectable skins.Example
Adds CS:S hands for hostage playermodels
player_manager.AddValidHands( "hostage01", "models/weapons/c_arms_cstrike.mdl", 0, "10000000" )
player_manager.AddValidHands( "hostage02", "models/weapons/c_arms_cstrike.mdl", 0, "10000000" )
player_manager.AddValidHands( "hostage03", "models/weapons/c_arms_cstrike.mdl", 0, "10000000" )
player_manager.AddValidHands( "hostage04", "models/weapons/c_arms_cstrike.mdl", 0, "10000000" )