Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if !(isServer) exitWith {};
- _objectList = _this;
- _playersList = [];
- {
- if (_x isKindOf "MAN") then {_playersList = _playersList + [_x]};
- } forEach _objectList;
- _randomIndex = floor(random count _playersList);
- _pickedPlayer = _playersList select _randomIndex;
- player globalChat format ["DEBUG: _playersList %1, _randomIndex %2, _pickedPlayer %3", _playersList, _randomIndex, _pickedPlayer];
- _pickedPlayer setVariable ["DIETC_saboteur", true, true];
- {
- _pickedPlayer setVariable ["DIETC_saboteur", false, true];
- } forEach (_playersList - [_pickedPlayer] );
Add Comment
Please, Sign In to add comment