Casio91Fin 31 Posted July 17, 2020 SP_AllPlayers = allUnits select {isPlayer _x}; This works on the server side, but only 80% SP_AllPlayers = allUnits select {isPlayer _x && {!(_x isKindOf "HeadlessClient_F")}}; <<< This doesn't work on the MP side why? (working SP) or have I forgotten something? Needs some sort of the same type that would read the players in server. Share this post Link to post Share on other sites
engima 327 Posted July 17, 2020 Maybe you have missed the red marked warning on the wiki for isPlayer: https://community.bistudio.com/wiki/isPlayer Maybe BIS_fnc_listPlayers is what you need? Share this post Link to post Share on other sites
pierremgi 4739 Posted July 17, 2020 allPlayers Dead or alive. BIS_fnc_ListPlayers is exactly same as : (allUnits + allDead) select {isPlayer _x} // no added value! At least you could reduce that by: (playableUnits + switchableUnits) select {isPlayer _x}; I'm rather sure these commands skip the Headless clients and there is no need to search among all non-playable units! 1 Share this post Link to post Share on other sites
engima 327 Posted July 18, 2020 Exactly the same, except for that allPlayers command seems to be a bit unreliable in the beginning of hosted games, according to notes in wiki: https://community.bistudio.com/wiki/allPlayers Share this post Link to post Share on other sites
pierremgi 4739 Posted July 18, 2020 48 minutes ago, engima said: Exactly the same, except for that allPlayers command seems to be a bit unteliable in the beginning of hosted games, according to notes in wiki: https://community.bistudio.com/wiki/allPlayers I repeat: BIS_fnc_ListPlayers is exactly same as : (allUnits + allDead) select {isPlayer _x} // no added value! You can check that easily in function viewer. So, you have choice between isPlayer inconsistency (red warning) and allPlayers little delay if Hosted game. Share this post Link to post Share on other sites
engima 327 Posted July 18, 2020 Ok, good piece of information. I have not really looked into it since I learned and confirmed that BIS_fnc_ListPlayers seems to always work. Share this post Link to post Share on other sites
Casio91Fin 31 Posted July 18, 2020 @pierremgi thanks for the advice. Share this post Link to post Share on other sites