SetObjectMaterial
#5

Please read this.
pawn Код:
SetObjectMaterial(objectid, materialinex, modelid, txdname, texturename, materialcolor);
pawn Код:
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. Use -1 to change the material color without altering the texture.
txdname The name of the txd file which contains the replacement texture (use "none" if not required)
texturename The name of the texture to use as the replacement (use "none" if not required)
materialcolor   The object color to set, as an integer or hex in ARGB color format. Using 0 keeps the existing material color.
Example:
pawn Код:
SetObjectMaterial(myobject, 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);
Reply


Messages In This Thread
SetObjectMaterial - by radiobizza - 07.05.2013, 19:42
Re: SetObjectMaterial - by BigGroter - 07.05.2013, 19:51
Re: SetObjectMaterial - by radiobizza - 07.05.2013, 19:52
Re: SetObjectMaterial - by radiobizza - 07.05.2013, 19:57
Re: SetObjectMaterial - by BigGroter - 07.05.2013, 20:23
Re: SetObjectMaterial - by Pottus - 07.05.2013, 20:27
Re: SetObjectMaterial - by radiobizza - 08.05.2013, 05:39
Re: SetObjectMaterial - by radiobizza - 08.05.2013, 14:04

Forum Jump:


Users browsing this thread: 3 Guest(s)