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

[General] How to disable Share Units button?

Status
Not open for further replies.
Level 9
Joined
Dec 16, 2017
Messages
343
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 64
Joined
Aug 10, 2018
Messages
6,517
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
343
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