Difference between revisions of "AdminBot for LSL/Events/SB COMMAND COMPLETED"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE: SB_COMMAND_COMPLETED}} <onlyinclude>Raised when command execution completes without errors.</onlyinclude> {{AdminBot Event Variables Table|event=SB_COMMAND_CO...")
 
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
  
 
{{AdminBot Event Variables Table|event=SB_COMMAND_COMPLETED}}
 
{{AdminBot Event Variables Table|event=SB_COMMAND_COMPLETED}}
{{API Variable|data|string}} the numeric ID of the command (see [[AdminBot_for_LSL/Examples/Headers|command IDs]]
+
{{API Variable|data|string}} the numeric ID of the command (see [[AdminBot_for_LSL/Examples/Headers|command IDs]])
 
{{API Variable|id|key}} ''not used''
 
{{API Variable|id|key}} ''not used''
  
 
{{API Variables Table End}}
 
{{API Variables Table End}}
 +
 +
== Comments ==
 +
 +
Note that some commands do not generate this event. Instead, they have their own dedicated "success" event (e.g. [[AdminBot_for_LSL/Commands/SB_SETUP_SETGROUP|SB_SETUP_SETGROUP]]).
  
 
{{AdminBot for Groups Events - standard footer}}
 
{{AdminBot for Groups Events - standard footer}}

Latest revision as of 11:38, 3 November 2017

Raised when command execution completes without errors.

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

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

Event parameters

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

Variable Type Description
cmd integer the SB_COMMAND_COMPLETED's numeric ID
data string the numeric ID of the command (see command IDs)
id key not used

Comments

Note that some commands do not generate this event. Instead, they have their own dedicated "success" event (e.g. SB_SETUP_SETGROUP).