Arma 3 Scripting

Function in Inventory

BIS_fnc_invAdd

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

Description

Adds item to inventory - checks if there is room for it. Checks if add was done by engine.

Syntax

[object,class,force] call BIS_fnc_invAdd

Parameters:

Returns: Boolean or Array - true when successfull, Array if force is set to true and items were removed (retuns items)

Examples

Example 1

[player,"someClass"] call BIS_fnc_invAdd;

See also

BIS_fnc_invRemove · BIS_fnc_invCodeToArray · BIS_fnc_invString · BIS_fnc_invSlots · BIS_fnc_invSlotsEmpty · BIS_fnc_invSlotType