Random Hero from region

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

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!
 

HG-Bonfire

New Member
Reaction score
22
are you testing the map using the world editor's test function? because when you test it like that the random seed is always the same
 

WorpeX

New Member
Reaction score
8
Yes, actually I am...I'll try it on b.net than and see if I get better results!
 

WorpeX

New Member
Reaction score
8
ya, i'm still getting the same thing on b.net as well. Its definatly the trigger.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top