Posts: 1,176
Threads: 2
Joined: Nov 2012
Reputation:
0
you have to use SetObjectMaterial, instead of SetObjectMaterialText, you can change textures with that.
Posts: 1,176
Threads: 2
Joined: Nov 2012
Reputation:
0
no, you don't have to use it like a sprite (I mean ld_grav:bee1), just take a texture name from ld_grav.txd, in that case bee1.
Posts: 220
Threads: 28
Joined: Aug 2015
Reputation:
0
same thing, nothing to display
SetDynamicObjectMaterial(obj, 0, 0,"bee1", "ld_grav.txd", 0xFFFFFFFF);
Posts: 453
Threads: 1
Joined: Feb 2011
Reputation:
0
You cant use textdraw sprites as object material
only in 0.3.8/DL you can use texture from custom models or sprites* as object material
* note that 0.3.8 allows a custom model textures to be loaded as textdraw sprites, you can already use anything in that has model id registered (e.g. createable objects) texture files as object material without having custom 0.3.8 models
The reason behind this because setobjectmaterial requires source model id (which i said creatable) to locate and load the texture files. You put 0 doesnt mean it will load any texture, instead it will load alpha texture.
also you dont need to write .txd in the parameter.
Posts: 220
Threads: 28
Joined: Aug 2015
Reputation:
0
I still didn't find a solution for me, How can I put that bee on objects?