- Home /
I want to spawn different items every life?
My game is centered around having randomized PvP combat. I want to know how I could have different people spawning with different items every game. For example, Player 1 has a knife and torch, while Player 2 has a frying pan and a stick. How would this work every single game that was played?
$$anonymous$$ake a array of game objects and use Random.Range(using .length) of the array to randomly select the items the players start with would work.
Your answer
![](https://koobas.hobune.stream/wayback/20220613140818im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Generate FTL style star map 0 Answers
Generate a mesh from randomly positioned points 0 Answers
How do I seed the random number generator myself and still get pseudorandom values? 2 Answers
Looking for a way to edit specific values in List by calling a random method? 0 Answers