getMass

From Bohemia Interactive Community
Revision as of 00:07, 14 May 2023 by Lou Montana (talk | contribs) (Text replacement - ">Posted on April ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-04-$1")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns mass of a PhysX object.
Groups:
Object Manipulation

Syntax

Syntax:
getMass object
Parameters:
object: Object
Return Value:
Number

Examples

Example 1:
_mass = getMass _myCar;

Additional Information

See also:
getCenterOfMass setCenterOfMass setMass load weightRTD

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
Posted on 2015-04-15 - 20:15 (UTC)
Pierre MGI
This function will return 0 for infantry AI units. That means a manned Blufor Hunter has the same mass than an empty one (8306.63). Crates return their initial mass, but if you empty them or load items, magazines and weapons, the mass remains the same. In fact, none of these (non-physx) objects has a mass.