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

From SmartBots Developers Docs
Jump to: navigation, search
 
Line 13: Line 13:
 
{| class="niceTable"
 
{| class="niceTable"
 
! colspan="2" width="120" | Variable
 
! colspan="2" width="120" | Variable
! width="50" | Required
+
! width="50" | Type
 
! Description
 
! Description
{{API Variable|cmd|yes}} the {{{event}}}'s numeric ID<!--
+
{{API Variable|cmd|integer}} the {{{event}}}'s numeric ID<!--

Latest revision as of 11:36, 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 Type Description
cmd integer the {{{event}}}'s numeric ID