I have an array called weapons, it stores all the weapons that are available in my game, is there a way to cycle through one of my folders in my library to populate the array or do I have to push each weapon into it manually?
Many thnaks
I have an array called weapons, it stores all the weapons that are available in my game, is there a way to cycle through one of my folders in my library to populate the array or do I have to push each weapon into it manually?
Many thnaks
You could have a common script attached to each weapon and use that to find all of the objects with it attached. You can use this to populate your array as you find each object.