# llGetMassMKS

*LSL function*

```lsl
float float llGetMassMKS();
```

- Returns: `float`
- Energy: 10

**MKS** as used in the name of this function is likely a reference to the [MKS system of units](https://en.wikipedia.org/wiki/MKS_system_of_units) (Meter, Kilogram, Second), which form the base of SI units (with some minor differences).

Returns a [float](https://wiki.secondlife.com/wiki/float) that is the mass (in Kilograms) of object that script is attached to. Functionally identical to [llGetMass](/functions/llGetMass/) except for the unit used in the return value.

```lsl title="How to use" frame="terminal"
float result = llGetMassMKS();
```

## Caveats

- Attachments do not effect an avatar's mass, only certain Appearance settings.
- Avatar mass is reported to either be unexpectedly low (when measured using [llGetMass](/functions/llGetMass/)) or unexpectedly high (when measured using [llGetMassMKS](/functions/llGetMassMKS/)). This is likely due to the weight being calculated based on a fixed value, with a modifier for height. The fixed value being used is incorrect, likely due to an incorrect density value being used.

## Examples

<details open>
<summary>Example 1</summary>

```lsl
//Reports an object's mass in Lindograms and Kilograms.
default
{
    touch_start()
    {
        llSay(0,"My weight in Lindograms: " + (string)llGetMass() + "\nMy weight in Kilograms: " + (string)llGetMassMKS());
    }
}
```

</details>

## Notes

- the Kilogram value seems to be the `Lindogram` value multiplied by 100.

## History

Date of Release [23/09/2011](https://wiki.secondlife.com/wiki/Release_Notes/Second_Life_Server/11#11-09-23-241511)

## See also

### Functions

- [llGetObjectMass](/functions/llGetObjectMass/) — Gets the object mass (in Lindograms)
- [llGetForce](/functions/llGetForce/) — Gets the objects force
- [llGetOmega](/functions/llGetOmega/)
- [llGetVel](/functions/llGetVel/)
- [llGetTorque](/functions/llGetTorque/)
- [llGetAccel](/functions/llGetAccel/)
- [llGetMass](/functions/llGetMass/) — Get the mass of an object (in Lindograms)

---

*Source: [LlGetMassMKS](https://wiki.secondlife.com/wiki/LlGetMassMKS) on the Second Life Wiki. Content from the Second Life Wiki article LlGetMassMKS (revision 1210899, 2022-07-08), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetMassMKS/
