• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Create Units at random position

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
I have this trigger. A player can select between two races.

  • Select Race
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • Dialog - Clear DialogSelectRace
      • Dialog - Change the title of DialogSelectRace to Select your race:
      • Dialog - Create a dialog button for DialogSelectRace labelled Legions of Hell
      • Set DialogButton[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for DialogSelectRace labelled The Elven Kingdom
      • Set DialogButton[2] = (Last created dialog Button)
      • Dialog - Show DialogSelectRace for Player 1 (Red)
      • Dialog - Show DialogSelectRace for Player 2 (Blue)
This trigger is not completed.


  • Selected Hell
    • Events
      • Dialog - A dialog button is clicked for DialogSelectRace
    • Conditions
      • (Clicked dialog button) Equal to DialogButton[1]
    • Actions
      • Unit - Create 3 Minion
      • Unit - Create 1 Prophet

I want these units to spawn at a random position at the map. But I want all units to spawn at the SAME random position.

How would you do that?
 
Status
Not open for further replies.
Top