From 74db9a0b7e54cca0210952a8dff9d3c01506e25b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brostr=C3=B6m=2EA=20=7C=20Evul?= Date: Sun, 10 Dec 2023 13:49:42 +0100 Subject: [PATCH] Added arsenal selected insignia is now saved (#1097) --- cScripts/functions/init/fn_init_aceArsenal.sqf | 4 ++++ cScripts/functions/players/fn_player_isCurator.sqf | 2 +- cScripts/functions/players/fn_profile_saveInsignia.sqf | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cScripts/functions/init/fn_init_aceArsenal.sqf b/cScripts/functions/init/fn_init_aceArsenal.sqf index 65da639a5..e795de4fd 100644 --- a/cScripts/functions/init/fn_init_aceArsenal.sqf +++ b/cScripts/functions/init/fn_init_aceArsenal.sqf @@ -24,6 +24,10 @@ GVAR(StagingArsenalOpen) = false; [player, true] call ace_arsenal_fnc_removeBox; GVAR(StagingArsenalOpen) = false; + // Save insignia + private _insigniaClass = [player] call BIS_fnc_getUnitInsignia; + [_insigniaClass] call cScripts_fnc_profile_saveInsignia; + // Reset default loadouts call FUNC(addDefaultArsenalLoadouts); }] call CBA_fnc_execNextFrame; diff --git a/cScripts/functions/players/fn_player_isCurator.sqf b/cScripts/functions/players/fn_player_isCurator.sqf index 44cd82d48..558331386 100644 --- a/cScripts/functions/players/fn_player_isCurator.sqf +++ b/cScripts/functions/players/fn_player_isCurator.sqf @@ -10,7 +10,7 @@ * true/False * * Example: - * call cScripts_fnc_unit_setInsignia + * call cScripts_fnc_unit_isCurator * */ diff --git a/cScripts/functions/players/fn_profile_saveInsignia.sqf b/cScripts/functions/players/fn_profile_saveInsignia.sqf index 5b848738d..4245f401c 100644 --- a/cScripts/functions/players/fn_profile_saveInsignia.sqf +++ b/cScripts/functions/players/fn_profile_saveInsignia.sqf @@ -10,7 +10,7 @@ * True * * Example: - * call cScripts_fnc_profile_saveInsignia + * ["curator"] call cScripts_fnc_profile_saveInsignia * * Public: No */