-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arsenal - Add ace_arsenal_fnc_saveLoadout
as API to save loadouts
#10151
Arsenal - Add ace_arsenal_fnc_saveLoadout
as API to save loadouts
#10151
Conversation
I have also left the documentation (currently) unedited because I wasn't sure how that should be organized. PR title is also open-ended in-case other functions come up. |
arma-rs (#9015) might be able to handle that? |
Works for me. |
Should there be If there's not a desire for other public functions, and verification is already handled, then this PR should be good then |
Maybe the second param could also take a unit, and would use the unit's loadout if passed? Was just something I thought of while at work, figured it might make saving loadouts a tiny bit easier for persistent campaigns or something similar. ["Loadout", [...]] call ace_arsenal_fnc_saveLoadout;
["Loadout", player, true] call ace_arsenal_fnc_saveLoadout; |
100% agree. |
Imo not worth the extra code inside the functions, you can more easily add |
Fair point, should be good for review then. |
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
…fian/ACE3 into arsenal/public-functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation still required.
Was waiting to see if anything else might pop up. I'll write it after work (~7 hours) |
Added a scripting example, I don't think an entire section is needed for a relatively simple function. |
ace_arsenal_fnc_saveLoadout
as API to save loadouts
…cemod#10151) * Added fnc_saveLoadout * Changed to toLower for other languages * GitHub didn't like editing the file in the browser * Fix case-sensitive _loadoutIndex Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> * Unicode support Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> * setVariable in case no loadouts are saved * Fix return not happening properly * Added scripting example * Update docs/wiki/framework/arsenal-framework.md --------- Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Now is too late, but |
-1 is not an index in this case, |
When merged this pull request will:
IMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}
.