float llGetMass();
Forced delay: 0.0 seconds. Energy: 10.0.
Returns a float that is the mass of object (in lindograms) that script is attached to.
//A way of making a constant force that returns the same speed visually whatever the object is
default
{
touch_start()
{
llApplyImpulse(<0.0, 0.0, 5.0> * llGetMass(), FALSE);
// This fires the object up at the same m/s whatever the size (or difference!)
}
}//Written by El Taka
"Lindograms" is the name of the primary unit of mass used in Second Life.
While Second Life primarily makes use of the SI system of units, mass seems to be an exception.
Some speculate that lindograms were intended to be kilograms, but a mistake was made when factoring object density, causing the mass value returned to be 100 times less than the actual kilogram value. As a result, some new functions were implemented (such as llGetMassMKS) which report the correct kilogram weight of an object.
Functionally speaking, lindograms can be used in the same way kilograms are used[1], however only within the bounds of Second Life. Trying to export mass values from Second Life will often run into issues, caused by the use of lindograms as a base unit of measurement.
From a technical point-of-view, a lindogram is equivalent to a metric quintal, however it is not treated as such.