Texture/materials help.
#2

Create a global variable:
pawn Код:
new objectid;
And where you want to create the object, and set it's material, declare that variable as the CreateObject code, and use that instead.
pawn Код:
objectid = CreateObject( ... );
SetObjectMaterial(objectid, ... );
Explained in the wiki aswell:
https://sampwiki.blast.hk/wiki/SetObjectMaterial
Reply


Messages In This Thread
Texture/materials help. - by Tuntun - 25.02.2015, 17:51
Re: Texture/materials help. - by CalvinC - 25.02.2015, 17:59

Forum Jump:


Users browsing this thread: 1 Guest(s)