Procedural Loot Generation
I Wanna add procedural loot generation into containers and into houses etc. I'm using the UMG Inventory tutorial assets. How can i get this done?
asked Jan 31 '15 at 02:18 AM in Blueprint Scripting
I believe you have already asked about the container part so assuming you already have that part done, I'll get to the random loot part.
First, you would create an array variable holding all the classes of loot that can spawn into the container. Then, a bool such as "spawn loot?". In your blueprint graph, set " is spawned?" Using the "random bool" function.
Then, branch using that bool. If it's true, spawn an actor of class and get the class from the loot array using "random integer" as index.
Follow this question
Once you sign in you will be able to subscribe for any updates here