Arma 3 Scripting

getMass

  • Global argument
  • Arma 3 v1.12

Command · Markdown · JSON · original wiki page

Description

Returns mass of a PhysX object.

Syntax

getMass object

Parameters:

Returns: Number

Examples

Example 1

_mass = getMass _myCar;

See also

getCenterOfMass · setCenterOfMass · setMass · load · weightRTD · getModelInfo

Community notes

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.