• 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.

Detect leaving players and players who are unused in player group checks?

Status
Not open for further replies.
Level 7
Joined
Mar 16, 2014
Messages
169
I give control of people who leave to their allies in my map. If I use player group variables with "all allies of X player" or "all enemies of X player", though, it will not detect leavers in these checks, or slots that are unused that I use as computer players. Is there any way to have these people show up in these checks?
 
Level 9
Joined
Jul 30, 2018
Messages
445
It is generally a good idea to add players to a Player Group. Checking Allies of Player X etc every time will leak and using a temp force on such occasions is just senseless. Make constant player groups, add all players that are playing at the start of the game to the associated player groups and then remove the player from the group if the player leaves. Then you can use condition Player is in PlayGroup instead of Player is an Ally of Player X.
 
Status
Not open for further replies.
Top