21.12.2016, 19:35
Quote:
Hello good afternoon.
I'm trying to create a SetObjectMaterialText, but I can not create it as I want, the text repeats itself, and it's not what I want. ![]() pawn Код:
![]() |
since that's just how the textures were created for that object.
it's that 1 wall sprite and they just repeated it 3 times to make the wall bigger
instead of jsut one texture covering the whole thing
just find another object, there are plenty and i remember there being some plain ones too,
perfect for text n stuff like that. im not sure if it's the right one,
but i think this object 19371 is perfect for what you need, material index can stay 0 too on that object
//EDIT: I just tested it with the object i had in mind + adjusted the textsize accordingly
PHP код:
new Text = CreateObject(19371, 0, 0, 5, 0.0000, 0.0000, 89.3610);
SetObjectMaterialText(Text, "example", 0, 140, "Arial", 120, 0, -16730675, 0, 1);
it's lil bit smaller of an object, like exactly 1/3 of the one you originally used.
text is max size for that object i.e. both 'e' s touch the objects borers