Skip to content

Commit

Permalink
[amb civ] Add rank as a filter for access to civ interact.
Browse files Browse the repository at this point in the history
  • Loading branch information
tupolov authored and DarrellJMartin committed May 28, 2019
1 parent 0a0368b commit d2e2755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/amb_civ_population/fnc_civInteract.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ switch (_operation) do {
if ((primaryWeapon _civ != "") or {handgunWeapon _civ != ""}) exitWith {};

// Exit if not authorized
if (count _authorized > 0 && !((getPlayerUID player in _authorized) || (typeOf player in _authorized) || (name player in _authorized) || (faction player in _authorized))) exitWith {["The civilian can't understand what you are saying."] call ALiVE_fnc_dumpR;};
if (count _authorized > 0 && !((getPlayerUID player in _authorized) || (typeOf player in _authorized) || (name player in _authorized) || (faction player in _authorized) || (rank player in _authorized))) exitWith {["The civilian can't understand what you are saying."] call ALiVE_fnc_dumpR;};

//-- Close dialog if it happened to open twice
if (!isNull findDisplay 923) exitWith {};
Expand Down

0 comments on commit d2e2755

Please sign in to comment.