Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p2b_servGetEligiblePlayers = {
- call p2b_servCheckGroups;
- p2b_eligiblePlayers = [];
- {
- _unit = _x;
- _isOk = false;
- _unitPlayer = (isPlayer _unit);
- _unitAlive = (alive _unit);
- _inGroup = (_unit in p2b_playersWithGroups);
- _selectedBefore = (_unit in p2b_selectedBefore);
- _optOut = (_unit getVariable ["p2bOptOut", false]);
- _isOk = !(_inGroup || _selectedBefore || _optOut || !_unitPlayer || !_unitAlive);
- if (_isOk) then {
- p2b_eligiblePlayers pushBack _unit;
- };
- } forEach (allUnits);
- }
Advertisement
Add Comment
Please, Sign In to add comment