• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Share control of units

Status
Not open for further replies.
Level 12
Joined
Jul 17, 2013
Messages
544
I have 9 players in my map. when event occours i split them into 2 random groups that have no vision but are neutral towards each other. players from group a cant see units of players from group and opposite. the groups are 4 players and 5 players or 5 players and 4 players it depends how it was randomized. if there is leaver in gorup A then only players from group A should get full control share of his units. same thing for group b. only team to which leaver belongs should be able to control his units after he left.





this is how i implemented it to triggers, but the issue is players from team A can control leavers from team B, players from team B can control leavers from team A, blizzard's function to give control to all players's allies treats neutrals players as allied and this is most probelamtic for me. how can i solve this in other way?
 
blizzard's function to give control to all players's allies treats neutrals players as allied and this is most probelamtic for me.
You could make Neutral Players enemies to everyone before running this!

As for your main issue, the "Game - Grant Shared Control" is happening when players from A are still allied to B. You could resolve this by first making team A neutral with all of the teammates from team B.
  • Player - Make (Picked player) treat OtherTeamPlayer as an Neutral
Good debugging exercise for you could be adding waits and debug messages to confirm that it is THIS block of code that is granting shared control.


edit: I believe you might have to do this for both teams before running the script you linked, iirc the Player function is oneway instead of applying to both players.
 
Status
Not open for further replies.
Back
Top