Hi, I’m trying to create a transparent ragdoll using a player model, but the transparency seems don’t working. This is my code :
local col = Entity(1):GetColor() Entity(1):SetPlayerColor(Vector(col.r/255, col.g/255, col.b/255, 0.2)) Entity(1):SetRenderMode(RENDERMODE_TRANSALPHA) Entity(1):CreateRagdoll()
here the 0.2 (a) doesn’t work.
I’ve alreasy tested with SetColor and it works but the function CreateRagdoll uses the PlayerColor and not SetColor ;
http://wiki.garrysmod.com/page/Player/CreateRagdoll : “The ragdoll will be created with the player’s properties such as Position, Angles, PlayerColor, Velocity and Model.”