• Bodygroups and color?
    4 replies, posted
Hi. Does anyone know how to change bodygroup color? I make gloves and wanna let ply decide color self.
Use with [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetColor]Entity:SetColor[/url] but your gloves is a model or skin ? you can make something like that: Entity:SetBodygroup(NumberOfYourBodyGroup) Entity:SetColor(DecideColor)
Nope. That for all models works only
As I know the only reason doing this is using PAC3 https://steamcommunity.com/sharedfiles/filedetails/?l=german&id=104691717
You can add the following to the .vmt-file, that corresponds to the material for at least the glove-parts of your model, with a couple of flags and proxies: "$blendtintbybasealpha" "<boolean>" // "Enables the use of an alpha mask to define areas to tint. Uses the mask of the Base Texture." "$blendtintcoloroverbase" "<float>" // "Sets the amount to replace with solid color. A value of '0' will be full tint while a value of '1.00' will replace the albedo in the mask area with the color defined with $color2. Default value is '0'." Proxies { PlayerColor { resultVar "$color2" } }
Sorry, you need to Log In to post a reply to this thread.