loadBackpack: Difference between revisions
Jump to navigation
Jump to search
(Clarify what loadBackpack actually returns) |
mNo edit summary |
||
Line 10: | Line 10: | ||
It is equivalent to this forumla: | It is equivalent to this forumla: | ||
<code>_loadBackpack <nowiki>=</nowiki> massOfAllItemsInBackpack / [[ | <code>_loadBackpack <nowiki>=</nowiki> massOfAllItemsInBackpack / [[getContainerMaxLoad]] [[backpack]] [[player]];</code> | ||
Revision as of 14:10, 11 June 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 forumla:_loadBackpack = massOfAllItemsInBackpack / getContainerMaxLoad backpack player;
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
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