Skip to content

Commit

Permalink
ACE3: Closing arsenal saves player loadout (#19)
Browse files Browse the repository at this point in the history
**When merged this pull request will:**
- Allow mission editors to enable the saving of player loadouts when the
ACE3 arsenal is closed.
  • Loading branch information
AdamWaldie authored Jun 6, 2024
2 parents a97c32f + 0997b75 commit 27cf438
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions initPlayerLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ player addAction [
};
}] call CBA_fnc_addClassEventHandler;

/*
=====================ACE 3 SAVE LOADOUT ON ARSENAL CLOSE====================================
This allows you to save whatever loadout the player selected after they close the arsenal
so that they may respawn with it. Particularly helpful when you just want the player to
select a loadout and then forget about having to use the arsenal after respawning.
*/

// ["ace_arsenal_displayClosed", {
// [player, [missionNamespace, "Waldo_Player_Inventory"]] call BIS_fnc_saveInventory;
// }] call CBA_fnc_addEventHandler;

/*
=====================RESPAWN WITH LOADOUT ON DEATH====================================
Expand Down

0 comments on commit 27cf438

Please sign in to comment.