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

ally and share vision not working

Status
Not open for further replies.
Level 12
Joined
Jan 13, 2008
Messages
559
  • pvp spawn
    • Events
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) controller) Equal to User
              • ((Picked player) slot status) Equal to Is playing
            • Then - Actions
              • Player Group - Add (Picked player) to allPlayers
            • Else - Actions
      • For each (Integer A) from 1 to numberOfTeams, do (Actions)
        • Loop - Actions
          • Player Group - Remove all players from tmpTeam
          • Set tmp_integer = (Random integer number between 1 and 10)
          • Set TempLoc = (Random point in start_regions[tmp_integer])
          • For each (Integer B) from 1 to (playercount / numberOfTeams), do (Actions)
            • Loop - Actions
              • Set tmpPlayer = (Random player from allPlayers)
              • Player Group - Remove tmpPlayer from allPlayers
              • Player Group - Add tmpPlayer to tmpTeam
              • Player Group - Pick every player in tmpTeam and do (Actions)
                • Loop - Actions
                  • Player - Make tmpPlayer treat (Picked player) as an Ally with shared vision
              • Unit - Create 1 Fist for tmpPlayer at TempLoc facing Default building facing degrees
the host can choose an amount of teams in the beginning and then this trigger gets called.
Everything seems to work just fine except that the 2 players in the same "team" dont share vision or are allied.
playercount is the amount of players in the game and numberOfTeams is the selected teamcount.
Am i missing something?
 
Status
Not open for further replies.
Top