- Documentation
- Client functions
- setMeshObjectColor
Function
setMeshObjectColor
Gives a model object a solid colour (r, g, b 0-255) with lighting; without a colour the default material comes back.
Syntax
bool setMeshObjectColor(meshobject meshObject [, int r, int g, int b])Arguments
meshObjectmeshobject- The object.
rint, optional- Red.
gint, optional- Green.
bint, optional- Blue.
Returns
true on success.
Example
setMeshObjectColor(statue, 255, 200, 0)