Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
So, is there a way to make a random unit out of a pool of 3 units spawn in an area.
I know how normal spawn in an area works, but the random select of the spawning unit is something I would like to get advice on
Thanks
Make a unity type variable that has a array size of 3
Untitled Trigger 001
Events
Map initialization
Conditions
Actions
Set RandomUnitArray[0] = SomeUnitType
Set RandomUnitArray[1] = SomeOtherUnitType
Set RandomUnitArray[2] = AWholeOtherKindOfUnit
Untitled Trigger 001
Events
Conditions
Actions
Unit - Create 1 RandomUnitArray[(Random integer number between 0 and 2)] for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.