getMass

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.12
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.12

Description

Description:
Returns mass of a PhysX object.

Syntax

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

Examples

Example 1:
_mass = getMass _myCar

Additional Information

Multiplayer:
-
See also:
getCenterOfMasssetCenterOfMasssetMassloadweightRTD

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on April 15, 2015 - 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.