mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Selectable Plots + Upgrades - 1st fix
This commit is contained in:
parent
d4ad7a33cb
commit
c2c79f8a77
@ -114,7 +114,6 @@ switch _interactOption do {
|
||||
case 2: _unifiedInteract; //Drink 2
|
||||
case 3: { // Build 3
|
||||
closeDialog 0;
|
||||
_buildingCountLimit = ["CfgEpochClient", "buildingCountLimit", 200] call EPOCH_fnc_returnConfigEntryV2;
|
||||
_partCheck = _item in (magazines player);
|
||||
|
||||
_buildClass = getText(_cfgItemInteractions >> "buildClass");
|
||||
|
@ -41,7 +41,7 @@ _unit = objNull;
|
||||
_targetPos = getPosATL _trgt;
|
||||
_targetPos set [2,0];
|
||||
|
||||
_jammers = (nearestObjects[player, call EPOCH_JammerClasses, call EPOCH_MaxJammerRange]) select {player distance _x < (getnumber (getmissionconfig ("CfgEpochClient" >> "CfgJammers" >> (typeof _x) >> "buildingJammerRange")))};
|
||||
_jammers = (nearestObjects[_targetPos, call EPOCH_JammerClasses, call EPOCH_MaxJammerRange]) select {_targetPos distance _x < (getnumber (getmissionconfig ("CfgEpochClient" >> "CfgJammers" >> (typeof _x) >> "buildingJammerRange")))};
|
||||
if(!(_jammers isEqualTo []) && (_unitClass in _nonJammer))exitWith{};
|
||||
|
||||
_restricted = nearestObjects [_targetPos, ["ProtectionZone_Invisible_F"], _nonTraderAIRange];
|
||||
|
Loading…
Reference in New Issue
Block a user