Difference between revisions of "Template:AdminBot Event Variables Table"
From SmartBots Developers Docs
Line 5: | Line 5: | ||
<span class="w"> </span><span class="p">}</span><br><span class="w"></span><span class="p">}</span> | <span class="w"> </span><span class="p">}</span><br><span class="w"></span><span class="p">}</span> | ||
<span class="w"></span></div></div> | <span class="w"></span></div></div> | ||
− | |||
<!-- a kind of mess above, it is a <syntaxhighlight> tag imitation --> | <!-- a kind of mess above, it is a <syntaxhighlight> tag imitation --> | ||
Revision as of 11:35, 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 | |
---|---|---|---|
cmd | yes | the {{{event}}}'s numeric ID |