Difference between revisions of "Template:AdminBot Event Variables Table"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "<syntaxhighlight lang="lsl">// Event usage:</syntaxhighlight> <div class="mw-highlight"> <div class="mw-code"><span class="nf">llMessageLinked</span>(<span class="kc">LINK_SET...")
 
Line 1: Line 1:
 
<syntaxhighlight lang="lsl">// Event usage:</syntaxhighlight>
 
<syntaxhighlight lang="lsl">// Event usage:</syntaxhighlight>
 
<div class="mw-highlight">
 
<div class="mw-highlight">
<div class="mw-code"><span class="nf">llMessageLinked</span>(<span class="kc">LINK_SET</span>, {{{command}}}, <span class="kt">string</span> <span class="nv">str</span>, <span class="kt">key</span> <span class="nv">id</span>);</div>
+
<div class="mw-code"><span class="nf">link_message</span>(<span class="kc">LINK_SET</span>, {{{command}}}, <span class="kt">string</span> <span class="nv">str</span>, <span class="kt">key</span> <span class="nv">id</span>);</div>
 
</div>
 
</div>
 
<!-- a kind of mess above, it is a <syntaxhighlight> tag imitation -->
 
<!-- a kind of mess above, it is a <syntaxhighlight> tag imitation -->
  
 +
<syntaxhighlight lang="lsl">
 +
link_message(integer sender,integer cmd, string data, key id) {
 +
  if(cmd==SB_COMMAND_FAILED) {
 +
    llOwnerSay("Event " + cmd + " arrived! Data:\n" + data);
 +
  }
 +
}
 +
</syntaxhighlight>
  
 
== API parameters ==
 
== API parameters ==

Revision as of 11:12, 3 November 2017

// Event usage:
link_message(LINK_SET, {{{command}}}, string str, key id);
link_message(integer sender,integer cmd, string data, key id) {
  if(cmd==SB_COMMAND_FAILED) {
    llOwnerSay("Event " + cmd + " arrived! Data:\n" + data);
  }
}

API parameters

llMessageLinked function accepts str and id parameters. Their meaning for {{{command}}} is explained below:

Variable Required Description.