Arma 3 Scripting

Command in Unit Inventory

getContainerMaxLoad

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

Description

Returns max load value of given uniform, vest or backpack container. For other types of containers, use maxLoad command

Syntax

getContainerMaxLoad containerClass

Parameters:

Returns: Number - load value, -1 if not available.

Examples

Example 1

private _maxLoadUniform        = getContainerMaxLoad uniform player;
private _maxLoadVest        = getContainerMaxLoad vest player;
private _maxLoadBackpack    = getContainerMaxLoad backpack player;

See also

load · loadAbs · loadUniform · loadBackpack · loadVest · getMass · weightRTD