Skip to content

Commit

Permalink
Added arsenal selected insignia is now saved (#1097)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom authored Dec 10, 2023
1 parent 5eb4f91 commit 74db9a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cScripts/functions/init/fn_init_aceArsenal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion cScripts/functions/players/fn_player_isCurator.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* true/False <BOOLEAN>
*
* Example:
* call cScripts_fnc_unit_setInsignia
* call cScripts_fnc_unit_isCurator
*
*/

Expand Down
2 changes: 1 addition & 1 deletion cScripts/functions/players/fn_profile_saveInsignia.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* True
*
* Example:
* call cScripts_fnc_profile_saveInsignia
* ["curator"] call cScripts_fnc_profile_saveInsignia
*
* Public: No
*/
Expand Down

0 comments on commit 74db9a0

Please sign in to comment.