SetObjectMaterial() Help -
sagosagi1 - 10.05.2014
Hello friends,
As you see in my pictures, i added new walls on LSPD parking place. Now i want to change the texture of the new walls to those which near, but how can i get the tecture lib if i know only object id?
Код:
new Float:X, Float:Y, Float:Z;
new myobject;
GetPlayerPos(playerid, X, Y, Z);
myobject = CreateObject(19392,...);
SetObjectMaterial(myobject, 0, 3975, "???", "???", 0xFFFFFFFF);
Re: SetObjectMaterial() Help -
Vince - 10.05.2014
By using another map editor (MEd) that supports the viewing of the TXD. The one you want is probably this one;
Re: SetObjectMaterial() Help -
sagosagi1 - 11.05.2014
Oh thank you man, you are fastest!
Re: SetObjectMaterial() Help -
sagosagi1 - 11.05.2014
Nothing changed, what i did wrong?
PHP код:
new object1;
object1 = CreateObject(19392, 1539.64795, -1619.46594, 14.17000, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(object1, 0, 3975, "lanbloke", "bow_concrete_drip", 0);
Re: SetObjectMaterial() Help -
Matess - 11.05.2014
Try different materialindex (1,2...all)
Re: SetObjectMaterial() Help -
sagosagi1 - 11.05.2014
I set materialindex until ...21, but nothing changed.
Re: SetObjectMaterial() Help -
Matess - 11.05.2014
I tried your code and it works fine i think.
Re: SetObjectMaterial() Help -
davve95 - 11.05.2014
Quote:
Originally Posted by Vince
By using another map editor (MEd) that supports the viewing of the TXD. The one you want is probably this one;
|
Well, I might be completely wrong: But couldn't you see it when you double click a object (JerneL's map editor).
Re: SetObjectMaterial() Help -
iZN - 11.05.2014
Quote:
Originally Posted by davve95
Well, I might be completely wrong: But couldn't you see it when you double click a object (JerneL's map editor).
|
You're right. As you can see the "Texture" and the box even includes other information related to the object.
Re: SetObjectMaterial() Help -
davve95 - 12.05.2014
Quote:
Originally Posted by davve95
Well, I might be completely wrong: But couldn't you see it when you double click a object (JerneL's map editor).
|
Never mind I got what you meant now.