FANDOM


Change the color of one 3D object. This command may not change the color if the object is loaded from a model file that contain diffuse color data.

SyntaxEdit

void dbColorObject(int iObject, int iColor)

int iObject is the number of the object you want change the color on.
int iColor is the color value. You can use dbRGB to get a color value.

ExampleEdit

dbMakeObjectCone(37, 16);
DWORD color = dbRGB(0, 0, 255); //Blue
dbColorObject(37, color);

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.