28.10.2013, 21:15
Hi guys, I'm working on a project and I wonder is there way to set the Object material for 100 and more objects to the same one using only one variable ?
Thanks in advance.
Thanks in advance.
The next version of Texture Studio will have text, copy/paste object material properties and the ability to texture multiple like objects at the same time to a material and/or color.
|
Not a safe way. You can just store the first object id, and then change the material for the following 100+ ids. But this will just work safely if you create the objects at gamemode start, never remove them during runtime, and always completely shut down the server for restarting it, instead of using gmx or stuff. Else ids might get mixed up, and some of the ids after the stored one might be invalid or belong to other objects, eventually turning your map into a psychedelic wonderland of strange textures.
Alternatively, you can change the material directly on creation for every single object, but that extremely messy. SetObjectMaterial(CreateObject(habbbadffd), adjkasdjkasjkfj) |
I thought to release that project, so what do you suggest me to set the material for each object or not ?
|
Alternatively, you can change the material directly on creation for every single object, but that extremely messy.
SetObjectMaterial(CreateObject(habbbadffd), adjkasdjkasjkfj) |