Arma 3 Scripting

Function in Inventory

BIS_fnc_invString

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns inventory contents of given vehicle (unit).

Note: for vehicles it returns mounted gun and its ammo, not cargo weapons and ammo.

Syntax

[object] call BIS_fnc_invString

Parameters:

Returns: Array - weapons and magazines

Examples

Example 1

[player] call BIS_fnc_invString;

See also

BIS_fnc_invRemove · BIS_fnc_invCodeToArray · BIS_fnc_invSlots · BIS_fnc_invSlotsEmpty · BIS_fnc_invSlotType · BIS_fnc_invAdd