From 007e3befb86b57e4a06643e9c55eb40e86f987a4 Mon Sep 17 00:00:00 2001 From: MusTanG Date: Sat, 25 Jul 2015 18:17:58 -0500 Subject: [PATCH] Epoch Build compatibility Add plot pole check to the MOVE OBJECT action --- surveiller_conditions_actions_menu.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/surveiller_conditions_actions_menu.sqf b/surveiller_conditions_actions_menu.sqf index b6bc8b2..0232d2f 100644 --- a/surveiller_conditions_actions_menu.sqf +++ b/surveiller_conditions_actions_menu.sqf @@ -37,7 +37,7 @@ _objet_pointe = _cursorTarget_distance select 0; _isNOTlocked = locked _objet_pointe < 2; - +_friendlyInRange=false;{if((_x getvariable ["BUILD_OWNER","-1"]) in [getplayerUID player, Epoch_my_groupUID])then{_friendlyInRange=true;}} forEach nearestObjects [player, ["plotpole_EPOCH"], 225]; if (call compile R3F_LOG_CFG_string_condition_allow_logistics_on_this_client && !R3F_LOG_mutex_local_verrou && _vehicule_joueur == _joueur && !isNull _objet_pointe && _cursorTarget_distance select 1 < 3.75 @@ -71,7 +71,7 @@ if (_fonctionnalites select __can_be_moved_by_player) then { // Condition action deplacer_objet R3F_LOG_action_deplacer_objet_valide = (count crew _objet_pointe == 0 || _isUav) && (isNull R3F_LOG_joueur_deplace_objet) && -_objet_pas_en_cours_de_deplacement && isNull (_objet_pointe getVariable "R3F_LOG_est_transporte_par") && _isNOTlocked && +_objet_pas_en_cours_de_deplacement && isNull (_objet_pointe getVariable "R3F_LOG_est_transporte_par") && _isNOTlocked && _friendlyInRange && // _friendlyInRange is the key to stop shelf glitch _objet_deverrouille && !(_objet_pointe getVariable "R3F_LOG_disabled"); // Condition action revendre_usine_deplace