SetObjectMaterial Question and Discussion
#1

Hey Everyone,

I was reading some topics on the forums and i got to know about the new addition to SA-MP 0.3e
Which is : SetObjectMaterial and SetPlayerObjectMaterial. So i checked the official wiki thread of this new function.

So the parameters information was as follows:

pawn Код:
(objectid, materialindex, modelid, txdname[], texturename[], materialcolor)
objectid    The ID of the object to change the texture of
materialindex   The material index on the object to change
modelid The modelid on which the replacement texture is located (use 0 for alpha)
txdname The name of the txd file which contains the replacement texture (use "none" for alpha)
texturename The name of the texture to use as the replacement (use "none" for alpha)
materialcolor   The object color to set, as an integer or hex in ABGR color format. Using 0 keeps the existing material color.

Returns This function doesn't return a specific value

So the problem is what happens when i use this function with One Model Id to Second Model Id? It changes the texture of the both the objects or from one to second.

But what exactly does it change? What does the term "Texture" means over here? Can someone please elaborate this to me properly?

The main problem is to understand the usage of this new function added to SAMP 0.3e

Thanks
Ballu Miaa
Reply


Messages In This Thread
SetObjectMaterial Question and Discussion - by Ballu Miaa - 07.04.2012, 04:45
Re: SetObjectMaterial Question and Discussion - by Faisal_khan - 07.04.2012, 06:42
Re: SetObjectMaterial Question and Discussion - by HuSs3n - 07.04.2012, 07:57
Re: SetObjectMaterial Question and Discussion - by Ballu Miaa - 07.04.2012, 09:31
Re: SetObjectMaterial Question and Discussion - by Manuel_P - 07.04.2012, 10:11
Re: SetObjectMaterial Question and Discussion - by Ballu Miaa - 07.04.2012, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)