Open CalebSerafin opened 2 years ago
allPlayers includes headless clients, and they are not filtered out later. Hiding objects for headless clients would be unnecessary and may cause issues with others scripts running on them. https://github.com/Battlekeeper/Arma3PerformanceExtension/blob/b67f011804500c9083752ac65fe3cd13bf30198b/addons/A3PE/functions/A3PEInit.sqf#L55 https://github.com/Battlekeeper/Arma3PerformanceExtension/blob/b67f011804500c9083752ac65fe3cd13bf30198b/addons/A3PE/functions/A3PEInit.sqf#L73
allPlayers
Filter out headless clients by array subtraction (allPlayers - entities "HeadlessClient_F")
(allPlayers - entities "HeadlessClient_F")
Problem
allPlayers
includes headless clients, and they are not filtered out later. Hiding objects for headless clients would be unnecessary and may cause issues with others scripts running on them. https://github.com/Battlekeeper/Arma3PerformanceExtension/blob/b67f011804500c9083752ac65fe3cd13bf30198b/addons/A3PE/functions/A3PEInit.sqf#L55 https://github.com/Battlekeeper/Arma3PerformanceExtension/blob/b67f011804500c9083752ac65fe3cd13bf30198b/addons/A3PE/functions/A3PEInit.sqf#L73Suggestion
Filter out headless clients by array subtraction
(allPlayers - entities "HeadlessClient_F")