getContainerMaxLoad: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma3 |Game name=
|game1= arma3
|version1= 1.62


|1.62|Game version=
|gr1= Unit Inventory


|gr1= Unit Inventory |GROUP1=
|descr= Returns max load value of given uniform, vest or backpack container. For other types of containers, use [[maxLoad]] command


| Returns max load value of given container. Currently works only with uniform, vest and backpack classes.  |DESCRIPTION=
|s1= [[getContainerMaxLoad]] containerClass


| '''getContainerMaxLoad''' containerClass |SYNTAX=
|p1= containerClass: [[String]] - uniform, vest or backpack class


|p1= containerClass: [[String]] - uniform, vest or backpack class  |PARAMETER1=
|r1= [[Number]] - load value, -1 if not available.


| [[Number]] - load value, -1 if not available. |RETURNVALUE=  
|x1= <sqf>_maxLoadUniform = getContainerMaxLoad uniform player;
_maxLoadVest = getContainerMaxLoad vest player;
_maxLoadBackpack = getContainerMaxLoad backpack player;</sqf>


|x1= <code>_maxLoadUniform = [[getContainerMaxLoad]] [[uniform]] [[player]];
|seealso= [[load]] [[loadAbs]] [[loadUniform]] [[loadBackpack]] [[loadVest]] [[getMass]] [[weightRTD]]
_maxLoadVest = [[getContainerMaxLoad]] [[vest]] [[player]];
_maxLoadBackpack = [[getContainerMaxLoad]] [[backpack]] [[player]];</code>|EXAMPLE1=
 
 
| [[load]], [[loadAbs]], [[loadUniform]], [[loadBackpack]], [[loadVest]], [[getMass]], [[weightRTD]] |SEEALSO=
 
|  |MPBEHAVIOUR=
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:23, 13 May 2022

Hover & click on the images for description

Description

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

Syntax

Syntax:
getContainerMaxLoad containerClass
Parameters:
containerClass: String - uniform, vest or backpack class
Return Value:
Number - load value, -1 if not available.

Examples

Example 1:
_maxLoadUniform = getContainerMaxLoad uniform player; _maxLoadVest = getContainerMaxLoad vest player; _maxLoadBackpack = getContainerMaxLoad backpack player;

Additional Information

See also:
load loadAbs loadUniform loadBackpack loadVest getMass weightRTD

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note