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

From SmartBots Developers Docs
Jump to: navigation, search
Line 8: Line 8:
 
<!-- a kind of mess above, it is a <syntaxhighlight> tag imitation -->
 
<!-- a kind of mess above, it is a <syntaxhighlight> tag imitation -->
  
== API parameters ==
+
== Event parameters ==
  
''llMessageLinked'' function accepts ''str'' and ''id'' parameters. Their meaning for {{{command}}} is explained below:
+
''link_message'' event receives ''cmd'', ''str'' and ''id'' parameters. Their meaning for {{{event}}} event is explained below:
  
 
{| class="niceTable"
 
{| class="niceTable"
Line 16: Line 16:
 
! width="50" | Required
 
! width="50" | Required
 
! Description. <!--
 
! Description. <!--
 +
{{API Variable|str|yes}} name of the group

Revision as of 11:27, 3 November 2017

// Event usage:
link_message(integer sender, integer cmd, string data, key id) {

    if(cmd == {{{event}}}) {
        llOwnerSay("Event " + cmd + " arrived! Data:\n" + data);     }
}


Event parameters

link_message event receives cmd, str and id parameters. Their meaning for {{{event}}} event is explained below:

Variable Required Description.