From 0fd03dfddfbd87137b2f6fd77e495cef76b8e2a9 Mon Sep 17 00:00:00 2001 From: ColdEvul Date: Mon, 20 Jan 2020 22:17:27 +0100 Subject: [PATCH] Tagging only apply on server once per mission --- cScripts/CavFnc/functions/init/fn_initTagging.sqf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cScripts/CavFnc/functions/init/fn_initTagging.sqf b/cScripts/CavFnc/functions/init/fn_initTagging.sqf index 8246c32d3..bc986bac2 100644 --- a/cScripts/CavFnc/functions/init/fn_initTagging.sqf +++ b/cScripts/CavFnc/functions/init/fn_initTagging.sqf @@ -15,6 +15,9 @@ * Public: No */ +if (!isServer) exitWith {}; +if (!isNil{missionNamespace getVariable QEGVAR(mission,tagging)}) exitWith {["Tagging already applied."] call FUNC(logWarning)}; + #ifdef DEBUG_MODE ["Initializing custom spray tags."] call FUNC(logInfo); #endif @@ -47,6 +50,8 @@ "z\cav\addons\textures\data\tagging\icon_action_red_ca.paa" ] call ace_tagging_fnc_addCustomTag; +missionNamespace setVariable [QEGVAR(mission,tagging), true]; + #ifdef DEBUG_MODE ["Custom spray tags initialization complete."] call FUNC(logInfo); #endif