SA-MP Forums Archive
Object count when texturing - 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: Object count when texturing (/showthread.php?tid=482144)



Object count when texturing - Wennicke - 19.12.2013

Does texturing an object count as creating an object?

Like:

CreateObject(...);
SetObjectMaterial(...);

Does that count as two objects like when you use the remove object function?


Re: Object count when texturing - x96664 - 19.12.2013

I really doubt it!


Re: Object count when texturing - CutX - 19.12.2013

just like x96664 said, it's not counting as creating an object.
You just set it's texture.

SetObjectMaterial:

The wiki says: "Replace the texture of an object with the texture from another model in the game"

CreateObject:

wiki says: "Creates an object"


Creating an object and changing it's textures are two different things.
For example, an objects texture can only be changed when it's been created before.

wiki example:
Quote:

myobject = CreateObject(19371, X, Y, Z+0.5, 0.0, 0.0, 0.0, 300.0);
SetObjectMaterial(myobject, 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);




Re: Object count when texturing - Wennicke - 19.12.2013

Alright thanks