ACE3/addons/gunbag/ACE_Arsenal_Actions.hpp
johnb432 a168330550
Arsenal - Add arsenal actions addition and removal via functions (#9318)
* Add and remove arsenal actions via functions

* Fixed header

* Update addons/arsenal/functions/fnc_addAction.sqf

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* Update fnc_addSort.sqf

* Update addons/arsenal/functions/fnc_removeAction.sqf

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* Update addons/arsenal/functions/fnc_removeAction.sqf

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

---------

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2023-08-18 12:33:56 -04:00

27 lines
1.2 KiB
C++

class EGVAR(arsenal,actions) {
class ADDON {
displayName = CSTRING(DisplayName);
condition = QUOTE(_this call FUNC(hasGunbag));
scopeEditor = 0; // variables are reset between 3DEN and mission start
tabs[] = {0,5};
class GVAR(status) {
textStatement = QUOTE([_this select 0] call FUNC(weaponName));
};
class GVAR(store) {
label = CSTRING(ToGunbag);
condition = QUOTE([ARR_2(_this select 0,_this select 0)] call FUNC(canInteract) == 0);
statement = QUOTE([ARR_2(_this select 0,_this select 0)] call FUNC(toGunbagCallback));
};
class GVAR(retrieve) {
label = CSTRING(OffGunbag);
condition = QUOTE([ARR_2(_this select 0,_this select 0)] call FUNC(canInteract) == 1);
statement = QUOTE([ARR_2(_this select 0,_this select 0)] call FUNC(offGunbagCallback));
};
class GVAR(swap) {
label = CSTRING(SwapGunbag);
condition = QUOTE([ARR_2(_this select 0,_this select 0)] call FUNC(canInteract) == 2);
statement = QUOTE([ARR_2(_this select 0,_this select 0)] call FUNC(swapGunbagCallback));
};
};
};