{"name":"getMass","title":"getMass","type":"command","url":"https://community.bistudio.com/wiki/getMass","revid":379346,"updated":"2026-10-30T23:54:18Z","groups":["PhysX"],"status":"ok","games":{"arma3":"1.12"},"since":"arma3 1.12","arma3_since":"1.12","locality":{"argument":"global"},"description":"Returns mass of a PhysX object.","syntaxes":[{"syntax":"getMass object","params":[{"name":"object","type":"Object","type_expr":"Object"}],"returns":{"type":"Number","type_expr":"Number"},"form":"unary","right":{"text":"object"}}],"examples":[{"code":["_mass = getMass _myCar;"]}],"see_also":["getCenterOfMass","setCenterOfMass","setMass","load","weightRTD","getModelInfo"],"notes":[{"user":"Pierre MGI","date":"2015-04-15T20:15:00Z","text":"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).\nCrates 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."}]}