Difference between revisions of "LlGetObjectMass"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/uuid|id|sim=*|object=*}}{{LSL_Function
|func_id=295|func_sleep=0.0|func_energy=10.0
|func_id=295|func_sleep=0.0|func_energy=10.0
|func=llGetObjectMass
|func=llGetObjectMass
|return_type=float|p1_type=key|p1_name=id|p1_desc=Avatar or object in the sim
|return_type=float|p1_type=key|p1_name=id
|func_footnote
|func_footnote
|func_desc
|func_desc
Line 8: Line 8:
|spec
|spec
|caveats=
|caveats=
*Returns zero if '''id''' is not found in the sim.
* Returns zero if '''id''' is not found in the region.
* '''id''' can be any prim in the object.
|constants
|constants
|examples=
|examples=

Revision as of 16:45, 14 February 2010

Summary

Function: float llGetObjectMass( key id );

Returns a float that is the mass of id

• key id group, avatar or object UUID that is in the same region

Caveats

  • Returns zero if id is not found in the region.
  • id can be any prim in the object.
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 in SL is expressed as lindogram.
  • Mass for avatars is relative to shape/size, and unaffected by attachments.

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

Tests

•  llGetObjectMass_Test

Signature

function float llGetObjectMass( key id );