mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - Provide reference to the current box (#7948)
* arsenal: provide ref to current box * use objNull instead of nil * Update fnc_openBox.sqf
This commit is contained in:
parent
0f6a9ecb87
commit
a67d6eecb0
@ -1,6 +1,8 @@
|
||||
#include "script_component.hpp"
|
||||
#include "defines.hpp"
|
||||
|
||||
GVAR(currentBox) = objNull;
|
||||
|
||||
GVAR(EH_ID) = 0;
|
||||
GVAR(lastSearchTextLeft) = "";
|
||||
GVAR(lastSearchTextRight) = "";
|
||||
|
@ -80,6 +80,8 @@ if (isMultiplayer) then {
|
||||
[QGVAR(center) + "_voice", GVAR(center)] call CBA_fnc_removeGlobalEventJIP;
|
||||
};
|
||||
|
||||
GVAR(currentBox) = objNull;
|
||||
|
||||
GVAR(camera) = nil;
|
||||
GVAR(cameraHelper) = nil;
|
||||
|
||||
|
@ -41,6 +41,8 @@ if (isNil "_displayToUse" || {!isnil QGVAR(camera)}) exitWith {
|
||||
[localize LSTRING(CantOpenDisplay), false, 5, 1] call EFUNC(common,displayText);
|
||||
};
|
||||
|
||||
GVAR(currentBox) = _object;
|
||||
|
||||
if (_mode) then {
|
||||
GVAR(virtualItems) = +(uiNamespace getVariable QGVAR(configItems));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user