I'm working on a project and I've hit a wall and figured since there's so many scripting gurus around that one of you could probably help. ;) I'm trying to do static loot crates for an AI controlled area that I made in the editor. I've made good progress with the scripting of the crates but I'm stuck on a semi-major issue. What I want to have happen is the script to randomly select a given number of items from various loot arrays I have set up. But what's happening is I'm getting 50 or 60 of the same item in the box, instead of getting 50 or 60 different items from the same array. I'm sure it's an elementary mistake on my part. I've looked at all the resources I have but I'm not sure where to go next. Please look at the code below and see if you can point me in the right direction. Thanks in advance!
Question
Darth_Rogue
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now