2023-07-25 06:30:49 +00:00
|
|
|
class EGVAR(arsenal,actions) {
|
|
|
|
class ADDON {
|
|
|
|
displayName = CSTRING(DisplayName);
|
|
|
|
condition = QUOTE(_this call FUNC(hasGunbag));
|
2023-07-25 06:41:15 +00:00
|
|
|
scopeEditor = 0; // variables are reset between 3DEN and mission start
|
2023-07-25 06:30:49 +00:00
|
|
|
tabs[] = {0,5};
|
2023-08-18 16:33:56 +00:00
|
|
|
class GVAR(status) {
|
2023-07-25 06:30:49 +00:00
|
|
|
textStatement = QUOTE([_this select 0] call FUNC(weaponName));
|
|
|
|
};
|
2023-08-18 16:33:56 +00:00
|
|
|
class GVAR(store) {
|
2023-07-25 06:30:49 +00:00
|
|
|
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));
|
|
|
|
};
|
2023-08-18 16:33:56 +00:00
|
|
|
class GVAR(retrieve) {
|
2023-07-25 06:30:49 +00:00
|
|
|
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));
|
|
|
|
};
|
2023-08-18 16:33:56 +00:00
|
|
|
class GVAR(swap) {
|
2023-07-25 06:30:49 +00:00
|
|
|
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));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|