• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[General] How to disable Share Units button?

Status
Not open for further replies.
Level 9
Joined
Dec 16, 2017
Messages
313
So, i did this

Screenshot 2022-02-16 162424.png


But players don't have shared vision anymore, and i need that, i tried to enable it with triggers, but it enables my share unit control too, how can i manage this?

  • Novice Spawn Copy
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 11, do (Actions)
        • Loop - Actions
          • For each (Integer B) from 1 to 11, do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Integer A) Not equal to (Integer B)
                • Then - Actions
                  • Player - Make (Player((Integer A))) treat (Player((Integer B))) as an Ally with shared vision
                • Else - Actions
Screenshot 2022-02-16 162816.png


It's the same if i do in reverse, enable share vision from Scenario and set them just as an Ally with triggers..
 
Last edited:

Uncle

Warcraft Moderator
Level 58
Joined
Aug 10, 2018
Messages
5,836
Not sure, it sounds like it should work. Try this one out:
  • Actions
    • Player Group - Make Users treat Users as an Ally with shared vision
Users would be a Player Group containing all of your User players.

It could be an issue with your version of the game.
 
Level 9
Joined
Dec 16, 2017
Messages
313
Hmm..it still does the same even with that..
I have seen more maps builded on 1.28.5 that had the share unit control disabled..
I've seen another thing in events, something like
  • Novice Spawn Copy
    • Events
      • Player - Player 1 (Red) changes Shared units settings
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Add Player 1 (Red) to Map_PlayersGroup
      • Player Group - Add Player 2 (Blue) to Map_PlayersGroup
      • Player Group - Add Player 3 (Teal) to Map_PlayersGroup
      • Player Group - Add Player 4 (Purple) to Map_PlayersGroup
      • Player Group - Add Player 5 (Yellow) to Map_PlayersGroup
      • Player Group - Add Player 6 (Orange) to Map_PlayersGroup
      • Player Group - Add Player 7 (Green) to Map_PlayersGroup
      • Player Group - Add Player 8 (Pink) to Map_PlayersGroup
      • Player Group - Add Player 9 (Gray) to Map_PlayersGroup
      • Player Group - Add Player 10 (Light Blue) to Map_PlayersGroup
      • Player Group - Add Player 11 (Dark Green) to Map_PlayersGroup
      • Player Group - Make Map_PlayersGroup treat Map_PlayersGroup as an Ally with shared vision
I've put the event in that way just to show it, but how does it fire? I tried do something like defeat the player that changes shared units settings and it didn't fired(just to test it, for future if i find out how this fires, i will just make it disable the share control with the unit he selected too)
 
Status
Not open for further replies.
Top