SomeEntity:SetPlayerColor(ply:GetPlayerColor()) or how to setplayercolor to ragdoll

SomeEntity:SetPlayerColor(ply:GetPlayerColor()) or how to setplayercolor to ragdoll

i tried



ent.GetPlayerColor = function() return ply:GetPlayerColor() end


but, this works only ClientSide.
How to setplayercolor on server ragdoll?

I don’t know how that code worked clienside, seeing as how ply is undefined, but oh well. As far as I know, GetPlayerColor is only called (when it comes to ragdolls) on the hl2mp_ragdoll entity.

Pretty sure that’s ply:GetColor() and ply:SetColor()


SetColor and SetPlayerColor - different things

I need full copy of visual things player.