Arma 3 Scripting

BIS_fnc_invAdd

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Function · Markdown · JSON · 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