Getting a random unit type

l3loodKnight

New Member
Reaction score
2
How do you get a random unit type? GetRandomInt() always gives the same number with the same lowBound/highBound.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
random int usually gets the same number only if you are playing your map through the "test map" button of the editor. if you start your map as a real single player map in wc3 the random will really be random.

i believe there was some button in the editor options which said "reset random" or something similar but cant remember where it was, sorry.
 
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