15.09.2015, 15:18
Hey guys... I am basically new to scripting(I have no intentions of learning pwn), so I am basically a mapper, But when you come to 'SetObjectMaterial' you need to script that, so I was wondering if we can define multiple objects at once for example:
new object;
object = CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
so when I change their texture I would simple do
SetObjectMaterial(object, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
it will change the texture of all the defined Objects.
Please if I didn't do it right(the define part) please correct me, It would really help me and yeah, There is a 1 rep in helping me <3
new object;
object = CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
CreateObject(7497, 1066.41406, 2110.75781, 14.41406, 356.85840, 0.00000, 3.14159);
so when I change their texture I would simple do
SetObjectMaterial(object, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
it will change the texture of all the defined Objects.
Please if I didn't do it right(the define part) please correct me, It would really help me and yeah, There is a 1 rep in helping me <3