mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - Add Default Loadouts API (#6558)
* Add addDefaultLoadout function
* Initialize defaultLoadoutsList by default
* Close params bracket
* Revert "Initialize defaultLoadoutsList by default"
This reverts commit a53d21046e
.
* Add isNil check
* Remove tab
* Overwrite loadout if it exists
* Fix file name typo
* Use findIf and copy array
* Add override note to header
* Make btnImport use new function instead of duplicating code
* Use GVAR
* Use findIf
* Fix spacing
* Add documentation
* Improve documentation
This commit is contained in:
committed by
PabstMirror
parent
64cc287408
commit
db6a40f91d
@ -8,7 +8,7 @@ class Cfg3DEN {
|
||||
class GVAR(DefaultLoadoutsListAttribute) {
|
||||
property = QGVAR(DefaultLoadoutsListAttribute);
|
||||
value = 0;
|
||||
expression = "if !(is3DEN) then {ace_arsenal_defaultLoadoutsList = _value};";
|
||||
expression = QUOTE(if (!is3DEN) then {GVAR(defaultLoadoutsList) = _value};);
|
||||
defaultValue = "[]";
|
||||
validate = "none";
|
||||
wikiType = "[[Array]]";
|
||||
|
Reference in New Issue
Block a user