2015-01-13 19:12:37 +00:00
|
|
|
// by commy2
|
|
|
|
|
|
|
|
// The Arma InventoryOpened EH fires actually before the inventory dialog is opened (findDisplay 602 => displayNull).
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if (isNil QGVAR(UpdateInventoryDisplay_EHID)) then {
|
2015-01-16 22:48:30 +00:00
|
|
|
GVAR(UpdateInventoryDisplay_EHID) = ["inventoryDisplayLoaded",{
|
2015-01-13 19:12:37 +00:00
|
|
|
_player = ACE_player;
|
|
|
|
[_player, secondaryWeapon _player] call FUNC(takeLoadedATWeapon);
|
2015-01-14 01:30:25 +00:00
|
|
|
[_player, (_this select 0)] call FUNC(updateInventoryDisplay);
|
2015-01-16 22:48:30 +00:00
|
|
|
}] call EFUNC(common,addEventHandler);
|
2015-01-13 19:12:37 +00:00
|
|
|
};
|