SetObjectMaterial
#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


Messages In This Thread
SetObjectMaterial - by SpankMe2 - 07.05.2012, 18:18
Re: SetObjectMaterial - by HDFord - 07.05.2012, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)