loadBackpack: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns current percentage of mass from items stored in a backpack relative to the maximum capacity of the backpack. <br> | | Returns current percentage of mass from items stored in a backpack relative to the maximum capacity of the backpack.<br> | ||
It is equivalent to this formula: | It is equivalent to this formula: | ||
<code>_loadBackpack {{=}} massOfAllItemsInBackpack / [[getContainerMaxLoad]] [[backpack]] [[player]];</code> |DESCRIPTION= | |||
<code>_loadBackpack | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[loadBackpack]] unit |SYNTAX= | ||
| [[ | |p1= unit: [[Object]] |PARAMETER1= | ||
| [[Number]] |RETURNVALUE= | |||
|x1= <code> | |x1= <code>[[private]] _myVariable = [[loadBackpack]] myUnit;</code>|EXAMPLE1= | ||
</code>|EXAMPLE1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[load]], [[backpackContainer]], [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[removeBackpack]], [[clearBackpackCargo]], [[clearAllItemsFromBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]], [[loadUniform]], [[loadVest]], [[getMass]], [[weightRTD]], [[getContainerMaxLoad]] |SEEALSO= | | [[load]], [[backpackContainer]], [[firstBackpack]], [[unitBackpack]], [[backpack]], [[backpackCargo]], [[getBackpackCargo]], [[backpackItems]], [[addBackpack]], [[addBackpackCargo]], [[removeBackpack]], [[clearBackpackCargo]], [[clearAllItemsFromBackpack]], [[backpackSpaceFor]], [[canAddItemToBackpack]], [[addItemToBackpack]], [[removeItemFromBackpack]], [[everyBackpack]], [[loadUniform]], [[loadVest]], [[getMass]], [[weightRTD]], [[getContainerMaxLoad]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Line 42: | Line 34: | ||
<h3 style='display:none'>Bottom Section</h3> | <h3 style='display:none'>Bottom Section</h3> | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command Group: Containers|{{uc:{{PAGENAME}}}}]] |
Revision as of 19:32, 25 November 2019
Description
- Description:
- Returns current percentage of mass from items stored in a backpack relative to the maximum capacity of the backpack.
It is equivalent to this formula:_loadBackpack = massOfAllItemsInBackpack / getContainerMaxLoad backpack player;
- Groups:
- Uncategorised
Syntax
- Syntax:
- loadBackpack unit
- Parameters:
- unit: Object
- Return Value:
- Number
Examples
- Example 1:
private _myVariable = loadBackpack myUnit;
Additional Information
- See also:
- loadbackpackContainerfirstBackpackunitBackpackbackpackbackpackCargogetBackpackCargobackpackItemsaddBackpackaddBackpackCargoremoveBackpackclearBackpackCargoclearAllItemsFromBackpackbackpackSpaceForcanAddItemToBackpackaddItemToBackpackremoveItemFromBackpackeveryBackpackloadUniformloadVestgetMassweightRTDgetContainerMaxLoad
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