setMaxLoad: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.08 |branch= dev |serverExec= server |gr1= Unit Inventory |descr= Sets maximum load limit for a uniform/vest/backpack containers...")
 
m (Some wiki formatting)
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.08
|version1= 2.08
|branch= dev
 
|serverExec= server
|serverExec= server


|gr1= Unit Inventory
|gr1= Unit Inventory


|descr= Sets maximum load limit for a uniform/vest/backpack containers, vehicle cargo, supply boxes and weapon holders. In MP this command should be executed on the server and will persist on given container for JIP
|descr= Sets maximum load limit for a uniform/vest/backpack containers, vehicle cargo, supply boxes and weapon holders. In MP this command should be executed on the server and will persist on given container for JIP.
{{Feature|Informative|Cannot be set on a unit, as unit max load value is static config type}}
{{Feature|informative|Cannot be set on a unit, as unit max load value is static config type}}


|s1= container [[setMaxLoad]] maxLoadValue
|s1= container [[setMaxLoad]] maxLoadValue


|p1= container: [[Object]] - uniform/vest/backpack container, vehicle cargo, supply box, weapon holder  
|p1= container: [[Object]] - uniform/vest/backpack container, vehicle cargo, supply box, weapon holder  
|p2= maxLoadValue: [[Number]] - max load limit
|p2= maxLoadValue: [[Number]] - max load limit


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>_yaMum [[setMaxLoad]] _maxLoad;</code>
|x1= <sqf>_yaMum setMaxLoad _maxLoad;</sqf>


|seealso= [[maxLoad]], [[load]], [[loadAbs]], [[loadBackpack]], [[loadUniform]], [[loadVest]], [[getContainerMaxLoad]]
|seealso= [[maxLoad]] [[load]] [[loadAbs]] [[loadBackpack]] [[loadUniform]] [[loadVest]] [[getContainerMaxLoad]]
}}
}}

Latest revision as of 12:53, 3 May 2022

Hover & click on the images for description

Description

Description:
Sets maximum load limit for a uniform/vest/backpack containers, vehicle cargo, supply boxes and weapon holders. In MP this command should be executed on the server and will persist on given container for JIP.
Cannot be set on a unit, as unit max load value is static config type
Groups:
Unit Inventory

Syntax

Syntax:
container setMaxLoad maxLoadValue
Parameters:
container: Object - uniform/vest/backpack container, vehicle cargo, supply box, weapon holder
maxLoadValue: Number - max load limit
Return Value:
Nothing

Examples

Example 1:
_yaMum setMaxLoad _maxLoad;

Additional Information

See also:
maxLoad load loadAbs loadBackpack loadUniform loadVest getContainerMaxLoad

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