loadBackpack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
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 <nowiki>=</nowiki> massOfAllItemsInBackpack / [[getContainerMaxLoad]] [[backpack]] [[player]];</code>  
 
 
  |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''loadBackpack''' unit |SYNTAX=
| [[loadBackpack]] unit |SYNTAX=
 
|p1= unit: [[Object]] |PARAMETER1=  


| [[Number]] |RETURNVALUE=  
|p1= unit: [[Object]] |PARAMETER1=


| [[Number]] |RETURNVALUE=


|x1= <code> myVariable = [[loadBackpack]] myUnit;
|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:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[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

Hover & click on the images for description

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

Notes

Bottom Section