getMass: Difference between revisions
Jump to navigation
Jump to search
(See Also - using stubs: not every single command needs to be linked, only related stubs.) |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
| '''getMass''' object |= Syntax | | '''getMass''' object |= Syntax | ||
|p1= object: [[Object]] |= | |p1= object: [[Object]] |PARAMETER1= | ||
| [[Number]] |= | | [[Number]] |RETURNVALUE= | ||
|x1= <code>_mass = [[getMass]] _myCar</code>|= | |x1= <code>_mass = [[getMass]] _myCar</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[getCenterOfMass]], [[setCenterOfMass]], [[setMass]], [[load]], [[weightRTD]] |= | | [[getCenterOfMass]], [[setCenterOfMass]], [[setMass]], [[load]], [[weightRTD]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:31, 7 April 2019
Description
- Description:
- Returns mass of a PhysX object.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_mass = getMass _myCar
Additional Information
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
- 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.