mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-11 10:42:58 +03:00
Rename selectPlayer and selectGroupMember functions
Fewer scripts.txt exceptions needed
This commit is contained in:
14
SQF/dayz_code/groups/pickPlayer.sqf
Normal file
14
SQF/dayz_code/groups/pickPlayer.sqf
Normal file
@@ -0,0 +1,14 @@
|
||||
private ["_display","_inviteButton","_playerList","_target","_uid"];
|
||||
|
||||
disableSerialization;
|
||||
_display = findDisplay 80000;
|
||||
_playerList = _display displayCtrl 1;
|
||||
_inviteButton = _display displayCtrl 3;
|
||||
_uid = _playerList lbData (lbCurSel _playerList);
|
||||
_target = _uid call dayz_getPlayer;
|
||||
|
||||
if (player == leader group player && {!isNull _target} && {count (units group _target) == 1}) then {
|
||||
_inviteButton ctrlShow true;
|
||||
} else {
|
||||
_inviteButton ctrlShow false;
|
||||
};
|
||||
Reference in New Issue
Block a user