ll.SetAgentRot

ll.SetAgentRot(rot: quaternion, flags: number) : ()

Sets the avatar rotation to the given value.

Example

ll.SetAgentRot(quaternion(0,0,0,1), 2)
{
  "def": "func",
  "desc": "Sets the avatar rotation to the given value.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlSetAgentRot",
  "name": "SetAgentRot",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "rot",
          "desc": "Rotation to turn the avatar to face.",
          "type": [
            "quaternion"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "flags",
          "desc": "flags",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll