Difference between revisions of "LlGetObjectMass"

From Second Life Wiki
Jump to navigation Jump to search
(http://en.wikipedia.org/wiki/Mass)
m
Line 15: Line 15:
     touch(integer n)
     touch(integer n)
     {
     {
         llSay(0, llDetectedName(0) + " your mass is " + (string)llGetObjectMass( llDetectedKey(0)) + " Lindens.");
         llSay(0, llDetectedName(0) + " your mass is " + (string)llGetObjectMass( llDetectedKey(0)) + " lindogram.");
     }
     }
}
}
Line 25: Line 25:
|also_events
|also_events
|also_articles
|also_articles
|history=Prior to server code version 1.18.6.76747 avatar mass was fixed at 1.954922 Lindens. It is now relative to Avatar shape/size.
|history=Prior to server code version 1.18.6.76747 avatar mass was fixed at 1.954922 lindogram. It is now relative to Avatar shape/size.
|notes=
|notes=
* Mass for Avatars is relative to shape/size, and unaffected by attachments.
* Mass for Avatars is relative to shape/size, and unaffected by attachments.
* [http://en.wikipedia.org/wiki/Mass Mass] in SL is expressed as ''Lindens''.
* [http://en.wikipedia.org/wiki/Mass Mass] in SL is expressed as ''lindogram''.
|cat1=Object
|cat1=Object
|cat2=Physics
|cat2=Physics

Revision as of 23:37, 10 March 2008

Summary

Function: float llGetObjectMass( key id );

Returns a float that is the mass of id

• key id Avatar or object in the sim

Caveats

  • Returns zero if id is not found in the sim.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>default {

   touch(integer n)
   {
       llSay(0, llDetectedName(0) + " your mass is " + (string)llGetObjectMass( llDetectedKey(0)) + " lindogram.");
   }

}

//Anylyn Hax 15:02, 28 July 2007 (PDT)</lsl>

Notes

  • Mass for Avatars is relative to shape/size, and unaffected by attachments.
  • Mass in SL is expressed as lindogram.

See Also

Functions

•  llGetMass Gets the current object mass.

Deep Notes

History

Prior to server code version 1.18.6.76747 avatar mass was fixed at 1.954922 lindogram. It is now relative to Avatar shape/size.

Search JIRA for related Issues

Signature

function float llGetObjectMass( key id );