SetObjectMaterial question
#1

I've recently come across SetObjectMaterial a but I haven't been able to understand how that function works.

objectid materialindex, modelid, txdname[], texturename[], materialcolor

There's the object ID which is self explanatory.
Materialindex which I have no idea what it is used for, how many indexes does an object have? Which index should be used?
Modelid, txdname and texturename as well as materialcolor are still unclear for me.

Thank you for helping.
Reply
#2

Maybe read a bit first....

https://sampwiki.blast.hk/wiki/SetObjectMaterial

Although it is not explained the function only supports up to material index 16.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)