Skip to content

Commit

Permalink
Merge pull request #549 from ColdEvul/tagging
Browse files Browse the repository at this point in the history
Tagging only apply on server once per mission
  • Loading branch information
AndreasBrostrom authored May 17, 2020
2 parents 48f2d49 + b5723a6 commit d4c8c2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cScripts/CavFnc/functions/init/fn_initTagging.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit d4c8c2e

Please sign in to comment.