ll.Listen

ll.Listen(Channel: number, SpeakersName: string, SpeakersID: uuid, Text: string) : number

Creates a listen callback for Text on Channel from SpeakersName and SpeakersID (SpeakersName, SpeakersID, and/or Text can be empty) and returns an identifier that can be used to deactivate or remove the listen. Non-empty values for SpeakersName, SpeakersID, and Text will filter the results accordingly, while empty strings and NULL_KEY will not filter the results, for string and key parameters respectively. PUBLIC_CHANNEL is the public chat channel that all avatars see as chat text. DEBUG_CHANNEL is the script debug channel, and is also visible to nearby avatars. All other channels are are not sent to avatars, but may be used to communicate with scripts.

Example

ll.Listen(
  4,
  'test',
  uuid('677bf9a4-bba5-4cf9-a4ad-4802a0f7ef46'),
  'test'
)
{
  "def": "func",
  "desc": "Creates a listen callback for Text on Channel from SpeakersName and SpeakersID (SpeakersName, SpeakersID, and/or Text can be empty) and returns an identifier that can be used to deactivate or remove the listen.\nNon-empty values for SpeakersName, SpeakersID, and Text will filter the results accordingly, while empty strings and NULL_KEY will not filter the results, for string and key parameters respectively.\nPUBLIC_CHANNEL is the public chat channel that all avatars see as chat text. DEBUG_CHANNEL is the script debug channel, and is also visible to nearby avatars. All other channels are are not sent to avatars, but may be used to communicate with scripts.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlListen",
  "name": "Listen",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "number"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Channel",
          "desc": "",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "SpeakersName",
          "desc": "",
          "type": [
            "string"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "SpeakersID",
          "desc": "",
          "type": [
            "uuid",
            "string"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Text",
          "desc": "",
          "type": [
            "string"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll