Warning: file_put_contents(/ff_8fd1a4ed5cc87d75a83729df7b2e0130eaa351a9d6e4051f.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
getChosenCont - OFPEC Scripting Command Reference | OFPEC The Editing Center

getChosenCont unitName

Operand types

unitName: Object

Type of returned value

Description

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)
];
};
}];

Advertisement