I have AI characters that spawn on the level load. Currently they are all have the same texture. If I have 20 different textures that work with the same character, how can I randomly apply that texture to a character when it loads, so they all don’t look the same?
There are many ways to approach this. I can tell a easy way
Take a switch on int on event begin play.
Make a variable called “Random Texture AI” which is a integer.
Make an array with int as variable aswell.
array of material interface references must be made as a variable too.
inside the arrayof material interface you must store 0-4 for example the textures you want it to change to.
Try this and tell me if it works.
][1]