getMass: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - " {{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}} " to "") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 17: | Line 17: | ||
|x1= <code>_mass = [[getMass]] _myCar</code> | |x1= <code>_mass = [[getMass]] _myCar</code> | ||
| [[getCenterOfMass]], [[setCenterOfMass]], [[setMass]], [[load]], [[weightRTD]] | |seealso= [[getCenterOfMass]], [[setCenterOfMass]], [[setMass]], [[load]], [[weightRTD]] | ||
}} | }} | ||
Revision as of 23:42, 16 February 2021
Description
- Description:
- Description needed
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- object: Object
- Return Value:
- Return value needed
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
- 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.