SA-MP Forums Archive
SetObjectMaterial question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetObjectMaterial question (/showthread.php?tid=562732)



SetObjectMaterial question - Albon - 11.02.2015

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.


Re: SetObjectMaterial question - Pottus - 11.02.2015

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.