• 🏆 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!

Is it possible to Melee - Create starting unit on AI excluding players?

Status
Not open for further replies.
Level 28
Joined
Feb 18, 2014
Messages
3,581
You could remove them after melee initialization :
  • Trigger
    • Events
      • Countdown Timer - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
        • Loop - Actions
          • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
            • Loop - Actions
              • Unit - Remove (Picked unit) from the game
However, the player will be defeated if you have the Enforce victory/defeat condition enabled.
 
Level 2
Joined
Aug 7, 2019
Messages
5
You can also use MeleeStartingUnitsForPlayer( race , player , location , doHeroes ) - the last parameter is a boolean if set to true, make the first hero free.
 
Level 7
Joined
Dec 6, 2010
Messages
153
You could remove them after melee initialization :
  • Trigger
    • Events
      • Countdown Timer - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
        • Loop - Actions
          • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
            • Loop - Actions
              • Unit - Remove (Picked unit) from the game
However, the player will be defeated if you have the Enforce victory/defeat condition enabled.

You can also use MeleeStartingUnitsForPlayer( race , player , location , doHeroes ) - the last parameter is a boolean if set to true, make the first hero free.

Ill try both of these thank you
 
Status
Not open for further replies.
Top