ll.SetPos

ll.SetPos (Position: vector) -> ()

If the object is not physical, this function sets the position of the prim. If the script is in a child prim, Position is treated as root relative and the link-set is adjusted. If the prim is the root prim, the entire object is moved (up to 10m) to Position in region coordinates.

Example

ll.SetPos(vector(1,1,1))
Raw function spec json
{
  "def": "func",
  "desc": "If the object is not physical, this function sets the position of the prim.\nIf the script is in a child prim, Position is treated as root relative and the link-set is adjusted.\nIf the prim is the root prim, the entire object is moved (up to 10m) to Position in region coordinates.",
  "energy": 10,
  "sleep": 0.2,
  "must_use": false,
  "link": "https://wiki.secondlife.com/wiki/LlSetPos",
  "private": false,
  "takesSelf": false,
  "name": "SetPos",
  "signatures": [
    {
      "def": "signature",
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            {
              "def": "simple",
              "value": "()"
            }
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Position",
          "desc": "Region coordinates to move to (within 10m).",
          "type": [
            {
              "def": "simple",
              "value": "vector"
            }
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll