SA-MP Forums Archive
Bug with SetObjectMaterial - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Bug with SetObjectMaterial (/showthread.php?tid=354960)



Bug with SetObjectMaterial - MP2 - 28.06.2012

If you set one of the material indexes invisible (color 0x00FFFFFF) the rest of the object becomes very dark. Could this please be fixed?


Re: Bug with SetObjectMaterial - Basssiiie - 29.06.2012

This problem didn't occur to me. I used this:
Код:
SetDynamicObjectMaterial(objectid, 1, 0, "none", "none", 0);
Works perfectly fine for me, I use it on several objects.

I'm sure the normal version works pretty much the same.


Re: Bug with SetObjectMaterial - MP2 - 29.06.2012

Perfect, thanks so much. There's still major problems with the 'color' parameter though. It doesn't work as it should.


Re: Bug with SetObjectMaterial - Basssiiie - 29.06.2012

It's just set up weirdly. Normal colors are RGBA, object colors are ARGB. The alpha is before the colors, instead of behind it.


Re: Bug with SetObjectMaterial - MP2 - 29.06.2012

I know that.


Re: Bug with SetObjectMaterial - Basssiiie - 29.06.2012

Well, I haven't experienced any problems with the material colors yet, so I'm not sure where these problems should be.