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))
{
  "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,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlSetPos",
  "name": "SetPos",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Position",
          "desc": "Region coordinates to move to (within 10m).",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll