ll.SetRegionPos

ll.SetRegionPos (Position: vector) -> number

Attempts to move the object so that the root prim is within 0.1m of Position. Returns an integer boolean, TRUE if the object is successfully placed within 0.1 m of Position, FALSE otherwise. Position may be any location within the region or up to 10m across a region border. If the position is below ground, it will be set to the ground level at that x,y location.

Example

ll.SetRegionPos(vector(1,1,1))
Raw function spec json
{
  "def": "func",
  "desc": "Attempts to move the object so that the root prim is within 0.1m of Position.\nReturns an integer boolean, TRUE if the object is successfully placed within 0.1 m of Position, FALSE otherwise.\nPosition may be any location within the region or up to 10m across a region border.\nIf the position is below ground, it will be set to the ground level at that x,y location.",
  "energy": 10,
  "sleep": 0,
  "must_use": false,
  "link": "https://wiki.secondlife.com/wiki/LlSetRegionPos",
  "private": false,
  "takesSelf": false,
  "name": "SetRegionPos",
  "signatures": [
    {
      "def": "signature",
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            {
              "def": "simple",
              "value": "number"
            }
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Position",
          "desc": "Vector. The location to move to, in region coordinates.",
          "type": [
            {
              "def": "simple",
              "value": "vector"
            }
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll