mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
11 lines
498 B
Plaintext
11 lines
498 B
Plaintext
// by commy2
|
|
|
|
// The Arma InventoryOpened EH fires actually before the inventory dialog is opened (findDisplay 602 => displayNull).
|
|
if (isNil "AGM_Disposable_UpdateInventoryDisplay_EHID") then {
|
|
AGM_Disposable_UpdateInventoryDisplay_EHID = [{
|
|
_player = AGM_player;
|
|
[_player, secondaryWeapon _player] call AGM_Disposable_fnc_takeLoadedATWeapon;
|
|
[_player, _this select 0] spawn AGM_Disposable_fnc_updateInventoryDisplay;
|
|
}] call AGM_Core_fnc_addInventoryDisplayLoadedEventHandler;
|
|
};
|