PDA

View Full Version : SetObjectMaterialText


Banditukas
17/02/2015, 05:58 PM
Hi,

When i setobjectmaterialtext object material is that what was before setting setobjectmaterialtext? because i need to getobjectmaterial in some ways, i use icognito streamer also.

PaulDinam
17/02/2015, 09:16 PM
Your wording didn't make sense at all but there's a function which returns the object's material if you use icognito's streamer.


new model, txdname[45], texturename[45], color;
GetDynamicObjectMaterial(objectid, 0, model, txdname, texturename, color, 45, 45);

Banditukas
17/02/2015, 09:35 PM
I mean when you use this function

SetDynamicObjectMaterialText

Object material still left the same i mean if i use


new model, txdname[45], texturename[45], color;
GetDynamicObjectMaterial(objectid, 0, model, txdname, texturename, color, 45, 45);
SetDynamicObjectMaterialText( ... );
GetDynamicObjectMaterial(objectid, 0, model, txdname, texturename, color, 45, 45);

PaulDinam
17/02/2015, 10:29 PM
So you want to reset the material upon setting the text?