How to define multiple Objects at once
#1

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
Reply


Messages In This Thread
How to define multiple Objects at once - by Nutcracker - 15.09.2015, 15:18
Re: How to define multiple Objects at once - by Jefff - 15.09.2015, 15:29
Re: How to define multiple Objects at once - by Nutcracker - 15.09.2015, 15:31
Re: How to define multiple Objects at once - by Nutcracker - 15.09.2015, 15:33
Re: How to define multiple Objects at once - by Jefff - 15.09.2015, 15:38
Re: How to define multiple Objects at once - by Nutcracker - 15.09.2015, 15:44
Re: How to define multiple Objects at once - by Nutcracker - 15.09.2015, 16:08
Re: How to define multiple Objects at once - by VoltMeter - 15.09.2015, 16:09
Re: How to define multiple Objects at once - by Pottus - 15.09.2015, 16:15
Re: How to define multiple Objects at once - by Nutcracker - 15.09.2015, 16:21

Forum Jump:


Users browsing this thread: 1 Guest(s)