• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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