10.10.2013, 18:11
So, I've seen many tutorials about how to edit object's texture but there isn't (probably) any that actually showed how to change object's color.
So, basically this is the format...
SetObjectMaterial (objectid, materialindex, modelid, txdname[], texturename[], materialcolor);
Considering that I need to change the color only, excluding everything else. Should my code look something like this?
myobject - object itself
0 - idk
5819 - the same as myobject because i don't want the texture to be changed...
0xFFAD00FC - ARGB color code FF- A, AD=R, AD=G, FC=B
So, basically this is the format...
SetObjectMaterial (objectid, materialindex, modelid, txdname[], texturename[], materialcolor);
Considering that I need to change the color only, excluding everything else. Should my code look something like this?
Код:
new myobject; myobject = CreateObject (5819, X, Y, Z, ...); SetObjectMaterial (myobject, 0, 5819, 0xFFAD00FC);
0 - idk
5819 - the same as myobject because i don't want the texture to be changed...
0xFFAD00FC - ARGB color code FF- A, AD=R, AD=G, FC=B