When Inventory UI (IDD: 602) is opened, this command returns connected container (Get Chosen Container).
Returns container object for ammobox, vehicle and some weaponholder when attempting to open backpack of another unit.
In all other cases returns objNull.
Used In
Arma3
Example
player addEventHandler ["InventoryOpened", {
0 = _this spawn {
waitUntil {!isNull findDisplay 602};
hint format [
"EH Container: %1nngetChosenCont: %2", _this select 1, getChosenCont (_this select 0)
];
};
}];