Syntax

float llGetMassMKS();

Forced delay: 0.0 seconds. Energy: ??.

Return value

Returns a float that is the mass (in Kilograms) of object that script is attached to. Functionally identical to llGetMass except for the unit used in the return value.

MKS as used in the name of this function is likely a reference to the MKS system of units (Meter, Kilogram, Second), which form the base of SI units (with some minor differences).

Caveats

Examples

//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());
    }
}

Notes

See also

Functions

Deep notes

History

Date of Release 23/09/2011