Entity.GetColor
From GMod Wiki
Function | |
Syntax | Entity:GetColor( ) |
Description: | |
Returns the color the entity is set to. | |
Returns: | Integer red, Integer green, Integer blue, Integer alpha or Color color β |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetColor]Entity.GetColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- The default color for an entity is opaque white (255, 255, 255, 255).
- This function doesn't actually return a table. Use the example above to successfully get all the components of the color. This was changed in beta, where it returns a Color.