ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setMeshObjectColor

Function

setMeshObjectColor

ClientGame engineTrilogy Hub only

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)

See also