getContainerMaxLoad: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.62|= Game version _________________...")
 
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(38 intermediate revisions by 4 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
____________________________________________________________________________________________


| Returns max load value of given container. Currently works only with uniform, vest and backpack classes. |= Description
|descr= Returns max load value of given uniform, vest or backpack container. For other types of containers, use [[maxLoad]] command
____________________________________________________________________________________________


| '''getContainerMaxLoad''' containerClass |= Syntax
|s1= [[getContainerMaxLoad]] containerClass


|p1= containerClass: [[String]] - uniform, vest or backpack class |= PARAMETER1
|p1= containerClass: [[String]] - uniform, vest or backpack class


| [[Number]] - load value, -1 if not available. |= RETURNVALUE
|r1= [[Number]] - load value, -1 if not available.


|x1= <code>_maxLoadUniform = [[getContainerMaxLoad]] [[uniform]] [[player]];
|x1= <sqf>_maxLoadUniform = getContainerMaxLoad uniform player;
_maxLoadVest = [[getContainerMaxLoad]] [[vest]] [[player]];
_maxLoadVest = getContainerMaxLoad vest player;
_maxLoadBackpack = [[getContainerMaxLoad]] [[backpack]] [[player]];</code>|= EXAMPLE1
_maxLoadBackpack = getContainerMaxLoad backpack player;</sqf>


____________________________________________________________________________________________
|seealso= [[load]] [[loadAbs]] [[loadUniform]] [[loadBackpack]] [[loadVest]] [[getMass]] [[weightRTD]]
 
| [[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>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[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