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))
{
  "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,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlSetRegionPos",
  "name": "SetRegionPos",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "number"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Position",
          "desc": "Vector. The location to move to, in region coordinates.",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll