SetObjectMaterial
#1

SetObjectMaterial(objectid, materialindex, modelid, txdname[], texturename[], materialcolor)

How can I find the Model ID, I find a object this is on place the ID here and it doesnt work any solutions?
Reply
#2

you need to make the object and giv it a ID
pawn Код:
exampleobject == CreateObject(objectid,x,y,z,rot,viewdistance);
then you need to use that ID instead of using the number objectid
pawn Код:
SetObjectMaterial(exampleobject,materialindex,modelid,txdname[],texturename[],materialcolor);
you need to make a spesific objectid for each object you create.

This should have been placed in 0.3e scripting, just a few people here script on 0.3e.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)