ll.GetMass

ll.GetMass () -> number

Returns the mass of object that the script is attached to. Returns the scripted object's mass. When called from a script in a link-set, the parent will return the sum of the link-set weights, while a child will return just its own mass. When called from a script inside an attachment, this function will return the mass of the avatar it's attached to, not its own.

Example

ll.GetMass()
Raw function spec json
{
  "def": "func",
  "desc": "Returns the mass of object that the script is attached to.\nReturns the scripted object's mass. When called from a script in a link-set, the parent will return the sum of the link-set weights, while a child will return just its own mass. When called from a script inside an attachment, this function will return the mass of the avatar it's attached to, not its own.",
  "energy": 10,
  "sleep": 0,
  "must_use": true,
  "link": "https://wiki.secondlife.com/wiki/LlGetMass",
  "private": false,
  "takesSelf": false,
  "name": "GetMass",
  "signatures": [
    {
      "def": "signature",
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            {
              "def": "simple",
              "value": "number"
            }
          ],
          "optional": false
        }
      ],
      "args": []
    }
  ]
}

< Back to ll