Entity.SetColor
From GMod Wiki
(Redirected from CLuaParticle.SetColor)
Function | |
Syntax | Entity:SetColor( Integer red, Integer green, Integer blue, Integer alpha or Color color β ) |
Description: | |
Sets the color of the entity. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetColor]Entity.SetColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional notes
- You don't pass a color object in the form of Color(rrr, ggg, bbb, aaa), you just pass rrr, ggg, bbb, aaa. This was changed in beta.
- The default color is Color(255, 255, 255, 255) (opaque white).
- Values can be set between 0 - 255 (0 being none and 255 being full)
- Running this from the client will set the color CLIENTSIDE ( meaning no other players will see the difference )