WorpeX
New Member
- Reaction score
- 8
Hey, I'm trying to get a random hero from a region to transport into an arena.
The problem I'm having is it keep moving the same 2 units and its never random.
heres my code:
Randombitches = Region the heros are in
Bluehero = Region the randomly selected hero needs to be in
Gladiators = Unit Group array
Thanks!
The problem I'm having is it keep moving the same 2 units and its never random.
heres my code:
Randombitches = Region the heros are in
Bluehero = Region the randomly selected hero needs to be in
Gladiators = Unit Group array
Code:
Unit Group - Add all units of (Units in randombitches <gen> matching (((Matching unit) is A Hero) Equal to True)) to Gladiators[(Integer A)]
Code:
Unit - Move (Random unit from Gladiators[(Interger A)]) instantly to (Center of bluehero <gen>), facing (Center of redhero <gen>)
Code:
Unit - A unit enters bluehero <gen>
Set BlueUnit = (Entering unit)
Unit Group - Remove (Entering unit) from Gladiators[(Integer A)]
Trigger - Turn off (This trigger)
Thanks!