How to set color for a material?

I’m creating a script in lua. It sets a prop’s material to wireframe, but is it possible to set the material color as well?

Entity:SetColor ain’t doing the trick?

Nope, it sets my prop color.

-OP did something wrong-

You have to draw the model manually for that however.

[editline]25th October 2013[/editline]

I just did:

ent:SetMaterial “models/wireframe”
ent:SetColor( Color(255, 0, 0, 255) )

That’s strange. For me it appears to flash red real quick then to the plain material color.

Are you setting the colour server or clientside?


Even clientside it’s working fine for me…

Ok, thanks. I’ll check my code, it’s probably something on my end.