• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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