loadAbs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
m (Fixed: Example incorrectly stated that returned value is in pounds. Arma uses either metric measurement (e.g., km/h, m/s), or abstract systems (like this one), but never imperial measurements.)
Line 17: Line 17:




|x1= Player unit weight in kilograms:<code>_weight = (((loadAbs player)*0.1)/2.2);</code>|= EXAMPLE1
|x1= Player weight:<code>_weight = loadAbs player;</code>|= EXAMPLE1
|x2= Player unit weight in pounds:<code>_weight = ((loadabs player)*0.1);</code>|= EXAMPLE2





Revision as of 16:04, 6 December 2016

Hover & click on the images for description

Description

Description:
Returns current sum of mass from items stored in all unit's containers, linked items and weapons.
Groups:
Uncategorised

Syntax

Syntax:
loadAbs unit
Parameters:
unit: Object
Return Value:
Number

Examples

Example 1:
Player weight:_weight = loadAbs player;

Additional Information

See also:
loadloadBackpackloadUniformloadVestgetMassweightRTDgetContainerMaxLoad

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